projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42be010
)
glut: Don't include mesa_wgl.h on MinGW builds.
author
José Fonseca
<jfonseca@vmware.com>
Thu, 22 Jan 2009 14:29:01 +0000
(14:29 +0000)
committer
José 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
patch
|
blob
|
history
diff --git
a/include/GL/glut.h
b/include/GL/glut.h
index 49225361bb787e44c36dc8d8ee69d6f07388d1d0..45fed43549283d4641314f68b8fb45553d7b6047 100644
(file)
--- 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