X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/87d1e11fd413212a7eacc745bf28a583cc63e65b..5b6ec9803a058368a1b240a22d444c7301c5715a:/src/common/object.cpp?ds=sidebyside diff --git a/src/common/object.cpp b/src/common/object.cpp index 704c124ba9..15e3f0fec0 100644 --- a/src/common/object.cpp +++ b/src/common/object.cpp @@ -31,11 +31,11 @@ #include #include -#if (WXDEBUG && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT +#if (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT #include "wx/memory.h" #endif -#if WXDEBUG || wxUSE_DEBUG_CONTEXT +#if defined(__WXDEBUG__) || wxUSE_DEBUG_CONTEXT // for wxObject::Dump #if wxUSE_IOSTREAMH # include @@ -90,7 +90,7 @@ bool wxObject::IsKindOf(wxClassInfo *info) const return FALSE; } -#if WXDEBUG || wxUSE_DEBUG_CONTEXT +#if defined(__WXDEBUG__) || wxUSE_DEBUG_CONTEXT void wxObject::Dump(ostream& str) { if (GetClassInfo() && GetClassInfo()->GetClassName()) @@ -100,7 +100,7 @@ void wxObject::Dump(ostream& str) } #endif -#if WXDEBUG && wxUSE_MEMORY_TRACING +#if defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING #ifdef new #undef new