X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/76626af21b305a78a55dc715b4641c6552392257..4832f7c06cfb85e5152489c052630df7b002e92e:/include/wx/memory.h diff --git a/include/wx/memory.h b/include/wx/memory.h index 80b942505c..0afeaf4ebd 100644 --- a/include/wx/memory.h +++ b/include/wx/memory.h @@ -23,19 +23,23 @@ info, or to be a straight call to the new operator. */ -#if (WXDEBUG && USE_MEMORY_TRACING) || USE_DEBUG_CONTEXT +#if (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT #include -#if USE_IOSTREAMH -#include +#if wxUSE_IOSTREAMH +// N.B. BC++ doesn't have istream.h, ostream.h +# include #else -#include +# include +# ifdef _MSC_VER + using namespace std; +# endif #endif #include "wx/string.h" -#if WXDEBUG +#ifdef __WXDEBUG__ // #ifndef WXDEBUG_NEW // #define WXDEBUG_NEW new(__FILE__,__LINE__) @@ -48,7 +52,7 @@ void wxDebugFree(void * buf, bool isVect = FALSE); // Currently, these merely call malloc and free; only the wxObject // operators do something interesting. But this allows WXDEBUG_NEW to // work for all 'new's in a file. -#if USE_GLOBAL_MEMORY_OPERATORS +#if wxUSE_GLOBAL_MEMORY_OPERATORS #ifdef new #undef new @@ -276,7 +280,7 @@ inline void wxTraceLevel(int WXUNUSED(level), const char *WXUNUSED(fmt)) {} #define WXTRACELEVEL TRUE ? (void)0 : wxTraceLevel // #define WXDEBUG_NEW new -#endif // WXDEBUG +#endif // __WXDEBUG__ #endif // _WX_MEMORYH__