From 5a7d1ad8a3314dc73f87f08e2265faf2f057e9a3 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 7 Feb 2005 10:12:12 +0000 Subject: [PATCH] DebugAlloc and DebugFree must be present also if there is no overridden global new as wxObject::new still needs it git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/memory.cpp b/src/common/memory.cpp index a6a4a32d50..18b7e30a68 100644 --- a/src/common/memory.cpp +++ b/src/common/memory.cpp @@ -950,6 +950,7 @@ void operator delete[] (void * buf) wxDebugFree(buf, true); } #endif +#endif // wxUSE_GLOBAL_MEMORY_OPERATORS // TODO: store whether this is a vector or not. void * wxDebugAlloc(size_t size, wxChar * fileName, int lineNum, bool isObject, bool WXUNUSED(isVect) ) @@ -1061,7 +1062,6 @@ void wxDebugFree(void * buf, bool WXUNUSED(isVect) ) free((char *)st); } -#endif // wxUSE_GLOBAL_MEMORY_OPERATORS #endif // __WXDEBUG__ // Trace: send output to the current debugging stream -- 2.47.2