summaryrefslogtreecommitdiff
path: root/include/GL
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-01-22 14:29:01 +0000
committerJosé Fonseca <jfonseca@vmware.com>2009-01-22 14:29:01 +0000
commit4558f6a7e4bb8757431bd6905be53aef4246bcdd (patch)
tree83b1dd32d9edd72f8f1185c3dfbbe1f91b2ba512 /include/GL
parent42be0104a22fdff0db3c39af9feb7d157ac87f46 (diff)
glut: Don't include mesa_wgl.h on MinGW builds.
windows.h header recent MinGW versions already declare the WGL API, and including mesa_wgl.h actually cause build failures.
Diffstat (limited to 'include/GL')
-rw-r--r--include/GL/glut.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/GL/glut.h b/include/GL/glut.h
index 49225361bb7..45fed435492 100644
--- a/include/GL/glut.h
+++ b/include/GL/glut.h
@@ -11,7 +11,10 @@
#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