X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c67daf87774c71ae9f73af9969008af220e52a11..341287bf49066e5dd84e971bd508ee3919ff4b46:/include/wx/utils.h diff --git a/include/wx/utils.h b/include/wx/utils.h index ed0115dc82..cbfd4d2b83 100644 --- a/include/wx/utils.h +++ b/include/wx/utils.h @@ -167,9 +167,9 @@ int WXDLLEXPORT wxFindMenuItemId(wxFrame *frame, const wxString& menuString, con // Can't export a class derived from a non-export class #if !defined(_WINDLL) && !defined(WXUSINGDLL) -#ifdef new -#undef new -#endif +// #ifdef new +// #undef new +// #endif class WXDLLEXPORT wxDebugStreamBuf: public streambuf { @@ -182,9 +182,9 @@ class WXDLLEXPORT wxDebugStreamBuf: public streambuf int sync(void); }; -#if WXDEBUG && USE_GLOBAL_MEMORY_OPERATORS -#define new WXDEBUG_NEW -#endif +// #if WXDEBUG && USE_GLOBAL_MEMORY_OPERATORS +// #define new WXDEBUG_NEW +// #endif #endif @@ -249,11 +249,9 @@ bool WXDLLEXPORT wxGetResource(const wxString& section, const wxString& entry, l bool WXDLLEXPORT wxGetResource(const wxString& section, const wxString& entry, int *value, const wxString& file = ""); #endif // USE_RESOURCES -#ifdef __UNIX__ -// 'X' Only, will soon vanish.... -// Get current Home dir and copy to dest -char* WXDLLEXPORT wxGetHomeDir( char *dest ); -#endif +// Get current Home dir and copy to dest (returns pstr->c_str()) +const char* WXDLLEXPORT wxGetHomeDir(wxString *pstr); + // Get the user's home dir (caller must copy--- volatile) // returns NULL is no HOME dir is known char* WXDLLEXPORT wxGetUserHome(const wxString& user = "");