X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/241421a60d9e3046dd48340de9cdca12713186fb..6415637cb0da1aa1eb0b6a73b9f1757e80f53a9a:/src/common/memory.cpp?ds=inline diff --git a/src/common/memory.cpp b/src/common/memory.cpp index 90812da1f1..1a6fae329d 100644 --- a/src/common/memory.cpp +++ b/src/common/memory.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "memory.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -26,10 +22,6 @@ #if (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -// #pragma implementation -#endif - #ifndef WX_PRECOMP #include "wx/utils.h" #include "wx/app.h" @@ -915,10 +907,11 @@ private: static MemoryCriticalSection memLocker; -#endif +#endif // USE_THREADSAFE_MEMORY_ALLOCATION + -#if !(defined(__WXMSW__) && (defined(WXUSINGDLL) || defined(WXMAKINGDLL_BASE))) #ifdef __WXDEBUG__ +#if !(defined(__WXMSW__) && (defined(WXUSINGDLL) || defined(WXMAKINGDLL_BASE))) #if wxUSE_GLOBAL_MEMORY_OPERATORS void * operator new (size_t size, wxChar * fileName, int lineNum) { @@ -951,8 +944,8 @@ void operator delete[] (void * buf) wxDebugFree(buf, true); } #endif // wxUSE_ARRAY_MEMORY_OPERATORS -#endif // !(defined(__WXMSW__) && (defined(WXUSINGDLL) || defined(WXMAKINGDLL_BASE))) #endif // wxUSE_GLOBAL_MEMORY_OPERATORS +#endif // !(defined(__WXMSW__) && (defined(WXUSINGDLL) || defined(WXMAKINGDLL_BASE))) // TODO: store whether this is a vector or not. void * wxDebugAlloc(size_t size, wxChar * fileName, int lineNum, bool isObject, bool WXUNUSED(isVect) )