glut: Don't include mesa_wgl.h on MinGW builds.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 22 Jan 2009 14:29:01 +0000 (14:29 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 22 Jan 2009 14:29:01 +0000 (14:29 +0000)
windows.h header recent MinGW versions already declare the WGL API, and
including mesa_wgl.h actually cause build failures.

include/GL/glut.h

index 49225361bb787e44c36dc8d8ee69d6f07388d1d0..45fed43549283d4641314f68b8fb45553d7b6047 100644 (file)
 #include <GL/glu.h>
 
 #if defined(__MINGW32__)
-#include <GL/mesa_wgl.h>
+#  ifndef WIN32_LEAN_AND_MEAN
+#    define WIN32_LEAN_AND_MEAN 1
+#  endif
+#  include <windows.h>
 #endif
 
 #ifdef __cplusplus