X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5a7d1ad8a3314dc73f87f08e2265faf2f057e9a3..2e2a55b22eebde25797bd030660d8c644bc7700b:/src/common/memory.cpp diff --git a/src/common/memory.cpp b/src/common/memory.cpp index 18b7e30a68..e3fd5b0551 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" @@ -917,6 +909,7 @@ static MemoryCriticalSection memLocker; #endif +#if !(defined(__WXMSW__) && (defined(WXUSINGDLL) || defined(WXMAKINGDLL_BASE))) #ifdef __WXDEBUG__ #if wxUSE_GLOBAL_MEMORY_OPERATORS void * operator new (size_t size, wxChar * fileName, int lineNum) @@ -949,7 +942,8 @@ void operator delete[] (void * buf) { wxDebugFree(buf, true); } -#endif +#endif // wxUSE_ARRAY_MEMORY_OPERATORS +#endif // !(defined(__WXMSW__) && (defined(WXUSINGDLL) || defined(WXMAKINGDLL_BASE))) #endif // wxUSE_GLOBAL_MEMORY_OPERATORS // TODO: store whether this is a vector or not.