diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-01-22 14:29:01 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2011-07-11 20:05:24 +0100 |
commit | 8b2c5b3f0098028a1f627447fd2eb87277b4e13c (patch) | |
tree | bc88d64b989f3a77fc8d0b7d879230c5e1c1a727 | |
parent | 977638cee56f1842b603c2b45e207bc99088bf65 (diff) | |
download | glut-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.h | 5 |
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 |