aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/glu/sgi/include/gluos.h
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/glu/sgi/include/gluos.h')
-rw-r--r--mesalib/src/glu/sgi/include/gluos.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/mesalib/src/glu/sgi/include/gluos.h b/mesalib/src/glu/sgi/include/gluos.h
index ac0a7874c..290a06f02 100644
--- a/mesalib/src/glu/sgi/include/gluos.h
+++ b/mesalib/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