]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/winundef.h
Forgot to commit this one - changes for wxBase
[wxWidgets.git] / include / wx / msw / winundef.h
index 356bb06ab1109575ca43df7053ca6a9bc5564a5c..e580f2465070e6e03dd274880b0da3bf979f3a88 100644 (file)
 
 #ifdef StartDoc
    #undef StartDoc
-   #ifdef __GNUWIN32__
+   #ifdef __GNUG__
       #define DOCINFOW DOCINFO
       #define DOCINFOA DOCINFO
    #endif
     }
 #endif
 
+// FindResource
+#ifdef FindResource
+    #undef FindResource
+    inline HRSRC FindResource(HMODULE hModule, LPCTSTR lpName, LPCTSTR lpType)
+    {
+    #ifdef _UNICODE
+        return FindResourceW(hModule, lpName, lpType);
+    #else
+        return FindResourceA(hModule, lpName, lpType);
+    #endif
+    }
+#endif
+
 // IsMaximized
 
 #ifdef IsMaximized