]> git.saurik.com Git - wxWidgets.git/commitdiff
Include "wx/msw/msvcrt.h" for better leak reporting
authorJulian Smart <julian@anthemion.co.uk>
Wed, 1 Dec 2004 14:46:16 +0000 (14:46 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 1 Dec 2004 14:46:16 +0000 (14:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/object.h

index 84e258463a1b486bdea61b26241dbf9116b0faf8..68233948a5fe3f10cdc52f6191cd2bbe4101a1f3 100644 (file)
@@ -590,6 +590,9 @@ private :
 
 #if defined(__WXDEBUG__) && wxUSE_GLOBAL_MEMORY_OPERATORS && wxUSE_DEBUG_NEW_ALWAYS
     #define new new(__TFILE__,__LINE__)
+#else if (defined(__WXDEBUG__) && defined(__VISUALC__) && !wxUSE_GLOBAL_MEMORY_OPERATORS && wxUSE_DEBUG_NEW_ALWAYS)
+    // Including this file redefines new and allows leak reports to contain line numbers
+    #include "wx/msw/msvcrt.h"
 #endif
 
 #endif  // _WX_OBJECTH__