]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/app.cpp
Removed redundant cursor files
[wxWidgets.git] / src / msw / app.cpp
index 9ee0700538ddb27b0260269ff649b9c1d1d96ffb..2c0de2d84579540d6b6e8f57d23ef6d464b84449 100644 (file)
@@ -612,7 +612,17 @@ int wxApp::GetComCtl32Version()
         // if so, then we can check for the version
         if ( dllComCtl32.IsLoaded() )
         {
-#ifdef DLLVER_PLATFORM_WINDOWS
+#ifndef DLLVER_PLATFORM_WINDOWS
+                       typedef struct _DllVersionInfo
+                       {
+                               DWORD cbSize;
+                               DWORD dwMajorVersion;                   // Major version
+                               DWORD dwMinorVersion;                   // Minor version
+                               DWORD dwBuildNumber;                    // Build number
+                               DWORD dwPlatformID;                     // DLLVER_PLATFORM_*
+                       } DLLVERSIONINFO;
+                       typedef HRESULT (CALLBACK* DLLGETVERSIONPROC)(DLLVERSIONINFO *);
+#endif
             // try to use DllGetVersion() if available in _headers_
             wxDYNLIB_FUNCTION( DLLGETVERSIONPROC, DllGetVersion, dllComCtl32 );
             if ( pfnDllGetVersion )
@@ -634,7 +644,6 @@ int wxApp::GetComCtl32Version()
                                         dvi.dwMinorVersion;
                 }
             }
-#endif
 
             // if DllGetVersion() is unavailable either during compile or
             // run-time, try to guess the version otherwise