summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-01-22 14:29:01 +0000
committerJosé Fonseca <jfonseca@vmware.com>2011-07-11 20:05:24 +0100
commit8b2c5b3f0098028a1f627447fd2eb87277b4e13c (patch)
treebc88d64b989f3a77fc8d0b7d879230c5e1c1a727
parent977638cee56f1842b603c2b45e207bc99088bf65 (diff)
downloadglut-8b2c5b3f0098028a1f627447fd2eb87277b4e13c.tar.gz
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.
-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 4922536..45fed43 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