glu: Fix build on mingw-w64.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Mon, 29 Aug 2011 13:18:06 +0000 (14:18 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Tue, 30 Aug 2011 08:42:01 +0000 (09:42 +0100)
src/glu/sgi/include/gluos.h

index ac0a7874cece23f5eb96b021bc9738a3d7ee0814..290a06f0282b5a090a4065e9ee27cf50031242bf 100644 (file)
 #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