#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