Moving the Windows-specific includes into the Windows-specific header file
authorJohn F. Fay <johnffay@nettally.com>
Sun, 29 Jan 2012 13:11:30 +0000 (13:11 +0000)
committerJohn F. Fay <johnffay@nettally.com>
Sun, 29 Jan 2012 13:11:30 +0000 (13:11 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1028 7f0cb862-5218-0410-a997-914c9d46530a

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

index 7199da7..d6d1743 100644 (file)
 \r
 /* -- PLATFORM-SPECIFIC INCLUDES ------------------------------------------- */\r
 \r
-/* All Win32 headers depend on the huge windows.h recursive include.\r
- * Note: Lower-case header names are used, for best cross-platform\r
- * compatibility.\r
- */\r
-#if TARGET_HOST_MS_WINDOWS && !defined(_WIN32_WCE)\r
-#    include <windows.h>\r
-#    include <windowsx.h>\r
-#    include <mmsystem.h>\r
-/* CYGWIN does not have tchar.h, but has TEXT(x), defined in winnt.h. */\r
-#    ifndef __CYGWIN__\r
-#      include <tchar.h>\r
-#    else\r
-#      define _TEXT(x) TEXT(x)\r
-#      define _T(x)    TEXT(x)\r
-#    endif\r
-\r
-#elif TARGET_HOST_POSIX_X11\r
+#if TARGET_HOST_POSIX_X11\r
 #    include <GL/glx.h>\r
 #    include <X11/Xlib.h>\r
 #    include <X11/Xatom.h>\r
index 4f8aaba..a18efb2 100644 (file)
 #ifndef  FREEGLUT_INTERNAL_MSWIN_H\r
 #define  FREEGLUT_INTERNAL_MSWIN_H\r
 \r
+\r
+/* All Win32 headers depend on the huge windows.h recursive include.\r
+ * Note: Lower-case header names are used, for best cross-platform\r
+ * compatibility.\r
+ */\r
+#if !defined(_WIN32_WCE)\r
+#    include <windows.h>\r
+#    include <windowsx.h>\r
+#    include <mmsystem.h>\r
+/* CYGWIN does not have tchar.h, but has TEXT(x), defined in winnt.h. */\r
+#    ifndef __CYGWIN__\r
+#      include <tchar.h>\r
+#    else\r
+#      define _TEXT(x) TEXT(x)\r
+#      define _T(x)    TEXT(x)\r
+#    endif\r
+\r
+#endif\r
+\r
+\r
+\r
 typedef struct tagSFG_PlatformDisplay SFG_PlatformDisplay;\r
 struct tagSFG_PlatformDisplay\r
 {\r