Mesa (master): glu: Fix build on mingw-w64.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Tue Aug 30 08:43:42 UTC 2011


Module: Mesa
Branch: master
Commit: 15465949e0e419d4719d84eb0220c4bb56a408db
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=15465949e0e419d4719d84eb0220c4bb56a408db

Author: José Fonseca <jose.r.fonseca at gmail.com>
Date:   Mon Aug 29 14:18:06 2011 +0100

glu: Fix build on mingw-w64.

---

 src/glu/sgi/include/gluos.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/glu/sgi/include/gluos.h b/src/glu/sgi/include/gluos.h
index ac0a787..290a06f 100644
--- a/src/glu/sgi/include/gluos.h
+++ b/src/glu/sgi/include/gluos.h
@@ -40,7 +40,13 @@
 #define NOIME
 #define NOMINMAX
 
+#ifdef __MINGW64_VERSION_MAJOR
+  #undef _WIN32_WINNT
+#endif
+
 #ifndef _WIN32_WINNT
+  /* XXX: Workaround a bug in mingw-w64's headers when NOGDI is set and
+   * _WIN32_WINNT >= 0x0600 */
   #define _WIN32_WINNT 0x0400
 #endif
 #ifndef STRICT




More information about the mesa-commit mailing list