diff --git a/include/wx/defs.h b/include/wx/defs.h index d4a7b74f56..87f846741f 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -518,9 +518,13 @@ class WXDLLEXPORT wxEvent; // where should i put this? we need to make sure of this as it breaks // the code. #if !wxUSE_IOSTREAMH && defined(__WXDEBUG__) -#ifndef __MWERKS__ -#undef __WXDEBUG__ -#endif +# ifndef __MWERKS__ +// #undef __WXDEBUG__ +# ifdef wxUSE_DEBUG_NEW_ALWAYS +# undef wxUSE_DEBUG_NEW_ALWAYS +# define wxUSE_DEBUG_NEW_ALWAYS 0 +# endif +# endif #endif // Callback function type definition