From 4558f6a7e4bb8757431bd6905be53aef4246bcdd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Thu, 22 Jan 2009 14:29:01 +0000 Subject: [PATCH] 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. --- include/GL/glut.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 #if defined(__MINGW32__) -#include +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN 1 +# endif +# include #endif #ifdef __cplusplus -- 2.30.2