Applied patch [ 1113624 ] MSW DLL requires global new/delete ops inline

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2005-02-09 21:36:10 +00:00
parent e4d192ff29
commit 241421a60d
2 changed files with 44 additions and 5 deletions

View File

@@ -917,6 +917,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 +950,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.