X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f2dec5b10d6fb8d05cadcf73ff53b5ed99de9c4e..0f314c30b8c4ffbd7d87146f72be7a061d506235:/src/common/memory.cpp diff --git a/src/common/memory.cpp b/src/common/memory.cpp index 2b590f68a9..29b31bdfeb 100644 --- a/src/common/memory.cpp +++ b/src/common/memory.cpp @@ -5,11 +5,11 @@ // Modified by: // Created: 04/01/98 // RCS-ID: $Id$ -// Copyright: (c) Julian Smart and Markus Holzem -// Licence: wxWindows license +// Copyright: (c) Julian Smart +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "memory.h" #endif @@ -26,7 +26,7 @@ #if (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) // #pragma implementation #endif @@ -54,7 +54,7 @@ #include #ifdef __WXMSW__ -#include +#include "wx/msw/wrapwin.h" #ifdef GetClassInfo #undef GetClassInfo @@ -768,7 +768,7 @@ bool wxDebugContext::PrintClasses(void) } int n = 0; - wxNode *node; + wxHashTable::compatibility_iterator node; wxClassInfo *info; wxClassInfo::sm_classTable->BeginFind(); @@ -1076,6 +1076,8 @@ void wxTraceLevel(int, const wxChar * ...) } #else // wxUSE_MEMORY_TRACING && defined(__WXDEBUG__) +// Already defined in memory.h +#if 0 void wxTrace(const char *WXUNUSED(fmt) ...) { } @@ -1084,4 +1086,5 @@ void wxTraceLevel(int WXUNUSED(level), const char *WXUNUSED(fmt) ...) { } #endif +#endif