]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/ole/oleutils.h
cleanup: all definitions missing from std headers should be in missing.h
[wxWidgets.git] / include / wx / msw / ole / oleutils.h
index afab7f2854375b1a95acbd73ebd5d0b795b542eb..f8ac24f78eeddffebf797508670c5b2e7dcbbb6f 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef   _WX_OLEUTILS_H
 #define   _WX_OLEUTILS_H
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma interface "oleutils.h"
 #endif
 
@@ -134,7 +134,7 @@ private:
   {                                                                           \
     wxLogRelease(_T(#classname), m_cRef);                                     \
                                                                               \
-    if ( --m_cRef == 0 ) {                                                    \
+    if ( --m_cRef == wxAutoULong(0) ) {                                                    \
       delete this;                                                            \
       return 0;                                                               \
     }                                                                         \