+ #undef StartDoc
+ #ifdef __GNUG__
+ #define DOCINFOW DOCINFO
+ #define DOCINFOA DOCINFO
+ #endif
+ #ifdef _UNICODE
+ inline int StartDoc(HDC h, CONST DOCINFOW* info)
+ {
+ return StartDocW(h, info);
+ }
+ #else
+ inline int StartDoc(HDC h, CONST DOCINFOA* info)
+ {
+ return StartDocA(h, info);
+ }
+ #endif
+#endif
+
+// GetObject
+
+#ifdef GetObject
+ #undef GetObject
+ inline int GetObject(HGDIOBJ h, int i, LPVOID buffer)
+ {
+ #ifdef _UNICODE
+ return GetObjectW(h, i, buffer);
+ #else
+ return GetObjectA(h, i, buffer);
+ #endif
+ }
+#endif
+
+// GetMessage
+
+#ifdef GetMessage
+ #undef GetMessage
+ inline int GetMessage(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax)
+ {
+ #ifdef _UNICODE
+ return GetMessageW(lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax);
+ #else
+ return GetMessageA(lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax);
+ #endif
+ }
+#endif
+
+// LoadLibrary
+
+#ifdef LoadLibrary
+ #undef LoadLibrary
+ inline HINSTANCE LoadLibrary(LPCTSTR lpLibFileName)
+ {
+ #ifdef _UNICODE
+ return LoadLibraryW(lpLibFileName);
+ #else
+ return LoadLibraryA(lpLibFileName);
+ #endif
+ }