X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/478e6b717c8cdbb35d993d5224895a0663c36bd1..099d4217df87a8b84e514c3c31550d21a8d2b8c2:/include/wx/memory.h?ds=sidebyside diff --git a/include/wx/memory.h b/include/wx/memory.h index dab00aecca..e69b1b03bc 100644 --- a/include/wx/memory.h +++ b/include/wx/memory.h @@ -12,7 +12,7 @@ #ifndef _WX_MEMORYH__ #define _WX_MEMORYH__ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "memory.h" #endif @@ -28,6 +28,8 @@ #include +// Obsolete +#if 0 #if wxUSE_IOSTREAMH // N.B. BC++ doesn't have istream.h, ostream.h # include @@ -37,6 +39,7 @@ // using namespace std; # endif #endif +#endif #ifdef __WXDEBUG__ @@ -112,8 +115,8 @@ inline void operator delete[] (void * buf) } #endif -// VC++ 6.0 -#if defined(__VISUALC__) && (__VISUALC__ >= 1200) +// VC++ 6.0 and MWERKS +#if ( defined(__VISUALC__) && (__VISUALC__ >= 1200) ) || defined(__MWERKS__) inline void operator delete(void* pData, wxChar* /* fileName */, int /* lineNum */) { wxDebugFree(pData, FALSE); @@ -227,8 +230,11 @@ protected: // Traverse the list. static void TraverseList (PmSFV, wxMemStruct *from = NULL); + // Obsolete +#if 0 static wxSTD streambuf *m_streamBuf; static wxSTD ostream *m_debugStream; +#endif static int debugLevel; static bool debugOn; @@ -243,12 +249,15 @@ public: wxDebugContext(void); ~wxDebugContext(void); + // Obsolete +#if 0 static bool HasStream(void) { return (m_debugStream != NULL); }; static wxSTD ostream& GetStream(void) { return *m_debugStream; } static wxSTD streambuf *GetStreamBuf(void) { return m_streamBuf; } static void SetStream(wxSTD ostream *stream, wxSTD streambuf *buf = NULL); static bool SetFile(const wxString& file); static bool SetStandardError(void); +#endif static int GetLevel(void) { return debugLevel; } static void SetLevel(int level) { debugLevel = level; } @@ -321,8 +330,8 @@ private: }; // Output a debug message, in a system dependent fashion. -void WXDLLEXPORT wxTrace(const wxChar *fmt ...); -void WXDLLEXPORT wxTraceLevel(int level, const wxChar *fmt ...); +void WXDLLEXPORT wxTrace(const wxChar *fmt ...) ATTRIBUTE_PRINTF_1; +void WXDLLEXPORT wxTraceLevel(int level, const wxChar *fmt ...) ATTRIBUTE_PRINTF_2; #define WXTRACE wxTrace #define WXTRACELEVEL wxTraceLevel