]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/utilscmn.cpp
added version checking to the renderers
[wxWidgets.git] / src / common / utilscmn.cpp
index f6195cfeb2af67fe79531458c149a35652ba8bf6..9c60b60e457a91d9386d835fa344910abfe6df5e 100644 (file)
@@ -17,7 +17,7 @@
 // headers
 // ----------------------------------------------------------------------------
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma implementation "utils.h"
 #endif
 
@@ -293,12 +293,12 @@ int wxGetOsVersion(int *verMaj, int *verMin)
     if ( ! traits )
         traits = &traitsConsole;
 
-    wxToolkitInfo *info = traits->GetToolkitInfo();
+    wxToolkitInfoinfo = traits->GetToolkitInfo();
     if ( verMaj )
-        *verMaj = info->versionMajor;
+        *verMaj = info.versionMajor;
     if ( verMin )
-        *verMin = info->versionMinor;
-    return info->os;
+        *verMin = info.versionMinor;
+    return info.os;
 }
 
 // ----------------------------------------------------------------------------