]> git.mxchange.org Git - simgear.git/blobdiff - simgear/screen/GLBitmaps.cxx
restore some part of the code to prevent an untwanted segmentationf fault.
[simgear.git] / simgear / screen / GLBitmaps.cxx
index 57f95e07a0a76df6cde1bdc929091ea2adb2dfb6..05f61553df646d24eddf1ccbc395379aeef2f487 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>
@@ -11,8 +15,6 @@
 #include <limits.h>
 #include <string.h>            // memcpy()
 
-#include GLUT_H
-
 #include "GLBitmaps.h"
 
 GlBitmap::GlBitmap( GLenum mode, GLint width, GLint height, GLubyte *bitmap )