summaryrefslogtreecommitdiffstats
path: root/src/glu
diff options
context:
space:
mode:
authorJosé Fonseca <jose.r.fonseca@gmail.com>2011-08-29 14:18:06 +0100
committerJosé Fonseca <jose.r.fonseca@gmail.com>2011-08-30 09:42:01 +0100
commit15465949e0e419d4719d84eb0220c4bb56a408db (patch)
tree479a49cf71590603fea3a68219a19c794aa60330 /src/glu
parent99a8150a1a3ad293fe6104a65526e0ee4d095bb7 (diff)
downloadexternal_mesa3d-15465949e0e419d4719d84eb0220c4bb56a408db.zip
external_mesa3d-15465949e0e419d4719d84eb0220c4bb56a408db.tar.gz
external_mesa3d-15465949e0e419d4719d84eb0220c4bb56a408db.tar.bz2
glu: Fix build on mingw-w64.
Diffstat (limited to 'src/glu')
-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 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