Moving more Windows-specific header stuff over to the Windows-specific header file
authorJohn F. Fay <johnffay@nettally.com>
Sun, 29 Jan 2012 13:14:08 +0000 (13:14 +0000)
committerJohn F. Fay <johnffay@nettally.com>
Sun, 29 Jan 2012 13:14:08 +0000 (13:14 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1029 7f0cb862-5218-0410-a997-914c9d46530a

src/Common/freeglut_internal.h
src/mswin/freeglut_internal_mswin.h

index d6d1743..bdb1c0b 100644 (file)
 #    endif\r
 #endif\r
 \r
-#if TARGET_HOST_MS_WINDOWS\r
-#    define  HAVE_VFPRINTF 1\r
-#endif\r
-\r
-/* MinGW may lack a prototype for ChangeDisplaySettingsEx() (depending on the version?) */\r
-#if TARGET_HOST_MS_WINDOWS && !defined(ChangeDisplaySettingsEx)\r
-LONG WINAPI ChangeDisplaySettingsExA(LPCSTR,LPDEVMODEA,HWND,DWORD,LPVOID);\r
-LONG WINAPI ChangeDisplaySettingsExW(LPCWSTR,LPDEVMODEW,HWND,DWORD,LPVOID);\r
-#    ifdef UNICODE\r
-#        define ChangeDisplaySettingsEx ChangeDisplaySettingsExW\r
-#    else\r
-#        define ChangeDisplaySettingsEx ChangeDisplaySettingsExA\r
-#    endif\r
-#endif\r
-\r
 #if defined(_MSC_VER) || defined(__WATCOMC__)\r
 /* strdup() is non-standard, for all but POSIX-2001 */\r
 #define strdup   _strdup\r
index a18efb2..78ad1fe 100644 (file)
 #endif\r
 \r
 \r
+#define  HAVE_VFPRINTF 1\r
+\r
+/* MinGW may lack a prototype for ChangeDisplaySettingsEx() (depending on the version?) */\r
+#if !defined(ChangeDisplaySettingsEx)\r
+LONG WINAPI ChangeDisplaySettingsExA(LPCSTR,LPDEVMODEA,HWND,DWORD,LPVOID);\r
+LONG WINAPI ChangeDisplaySettingsExW(LPCWSTR,LPDEVMODEW,HWND,DWORD,LPVOID);\r
+#    ifdef UNICODE\r
+#        define ChangeDisplaySettingsEx ChangeDisplaySettingsExW\r
+#    else\r
+#        define ChangeDisplaySettingsEx ChangeDisplaySettingsExA\r
+#    endif\r
+#endif\r
+\r
+\r
+/* Structure Definitions */\r
 \r
 typedef struct tagSFG_PlatformDisplay SFG_PlatformDisplay;\r
 struct tagSFG_PlatformDisplay\r