]> git.mxchange.org Git - simgear.git/blobdiff - simgear/screen/GLBitmaps.cxx
Attempt to fix the Cygwin build problem for once and for all
[simgear.git] / simgear / screen / GLBitmaps.cxx
index f8b137022632cdbfd86289bed3799f586bd689cd..7caba76d46287819ae165a6f395f0448f1f9ab04 100755 (executable)
@@ -2,8 +2,12 @@
 #  include <simgear_config.h>
 #endif
 
-#ifdef HAVE_WINDOWS_H
-#  include <windows.h>                     
+#if defined(__CYGWIN__)  /* && !defined(USING_X) */
+#define WIN32
+#endif
+
+#if defined(WIN32)  /* MINGW and MSC predefine WIN32 */
+# include <windows.h>
 #endif
 
 #include <stdio.h>