X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/16c1f7f345e1850f590cfbf67c3b00fbb6d2e62e..47bc1060127d86222768789575295254a710f5a6:/include/wx/memory.h diff --git a/include/wx/memory.h b/include/wx/memory.h index 0f61ce0516..8f5c81ae95 100644 --- a/include/wx/memory.h +++ b/include/wx/memory.h @@ -23,14 +23,17 @@ info, or to be a straight call to the new operator. */ -#if (WXDEBUG && USE_MEMORY_TRACING) || USE_DEBUG_CONTEXT +#if (WXDEBUG && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT #include -#if USE_IOSTREAMH -#include +#if wxUSE_IOSTREAMH +# include #else -#include +# include +# ifdef _MSC_VER + using namespace std; +# endif #endif #include "wx/string.h" @@ -48,7 +51,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 @@ -57,6 +60,11 @@ void wxDebugFree(void * buf, bool isVect = FALSE); void * operator new (size_t size, char * fileName, int lineNum); void operator delete (void * buf); +// VC++ 6.0 +#if _MSC_VER >= 1200 +void operator delete(void *buf, char*, int); +#endif + #if !( defined (_MSC_VER) && (_MSC_VER <= 1020) ) void * operator new[] (size_t size, char * fileName, int lineNum); void operator delete[] (void * buf);