summaryrefslogtreecommitdiff
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
commit3180913b424675330c6399e0ba597c6defdb34fb (patch)
treeffe5685a0f0736d50f651722c7aca5cdd53317d9
parent03ac87fa675e753aa2ff698c526c8f146f6c6490 (diff)
downloadglu-3180913b424675330c6399e0ba597c6defdb34fb.tar.gz
glu: Fix build on mingw-w64.
-rw-r--r--src/include/gluos.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/gluos.h b/src/include/gluos.h
index ac0a787..290a06f 100644
--- a/src/include/gluos.h
+++ b/src/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