summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2011-08-29 14:18:06 +0100
committerJosé Fonseca <[email protected]>2011-08-30 09:42:01 +0100
commit15465949e0e419d4719d84eb0220c4bb56a408db (patch)
tree479a49cf71590603fea3a68219a19c794aa60330
parent99a8150a1a3ad293fe6104a65526e0ee4d095bb7 (diff)
glu: Fix build on mingw-w64.
-rw-r--r--src/glu/sgi/include/gluos.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glu/sgi/include/gluos.h b/src/glu/sgi/include/gluos.h
index ac0a7874cec..290a06f0282 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