X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f525dc35f4b2c07fb7efb53a85779a2f3a3d89f5..7249080588e30b4740adc138e793ffa0ead4b5ef:/include/wx/object.h diff --git a/include/wx/object.h b/include/wx/object.h index 84e258463a..3ac8f6bf6e 100644 --- a/include/wx/object.h +++ b/include/wx/object.h @@ -590,6 +590,9 @@ private : #if defined(__WXDEBUG__) && wxUSE_GLOBAL_MEMORY_OPERATORS && wxUSE_DEBUG_NEW_ALWAYS #define new new(__TFILE__,__LINE__) +#elif (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__