]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/thread.h
there's no such thing as <typeinfo.h>
[wxWidgets.git] / include / wx / thread.h
index 543f16cedaf9620d56d3206f4b50e1d142e05de3..b3cc0a45f0b589fb5fe621fd2d34cfee1fda4ece 100644 (file)
@@ -23,7 +23,7 @@
 #if wxUSE_THREADS
 
 // only for wxUSE_THREADS - otherwise we'd get undefined symbols
-#if defined(__GNUG__) && !defined(__APPLE__)
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma interface "thread.h"
 #endif
 
@@ -209,11 +209,11 @@ private:
 
 // in order to avoid any overhead under platforms where critical sections are
 // just mutexes make all wxCriticalSection class functions inline
-#if !defined(__WXMSW__) && !defined(__WXPM__)
+#if !defined(__WXMSW__)
     #define wxCRITSECT_IS_MUTEX 1
 
     #define wxCRITSECT_INLINE inline
-#else // MSW || OS2
+#else // MSW
     #define wxCRITSECT_IS_MUTEX 0
 
     #define wxCRITSECT_INLINE
@@ -257,9 +257,7 @@ private:
 
         wxCritSectBuffer m_buffer;
     };
-#else
-    // nothing for OS/2
-#endif // Unix/Win32/OS2
+#endif // Unix&OS2/Win32
 
     DECLARE_NO_COPY_CLASS(wxCriticalSection)
 };