summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2016-01-31 17:46:44 +0000
committerJose Fonseca <jfonseca@vmware.com>2016-03-05 17:17:30 +0000
commite22c5bcc15d469240585c39b628eef9ec69e5328 (patch)
tree9f2290ac6771d6a700917fda0beff4856997de0b /compat
parent376992b0363f5e2db80fd1b5f4930e07859ba598 (diff)
compat: Ensure newer Windows version defines exist.
Some of the WinSDK headers (e.g, dcomp.h) rely on them being defined, but not all MinGW versions out there have them.
Diffstat (limited to 'compat')
-rw-r--r--compat/winsdk_compat.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/compat/winsdk_compat.h b/compat/winsdk_compat.h
index 9b73c4f8..e81ab585 100644
--- a/compat/winsdk_compat.h
+++ b/compat/winsdk_compat.h
@@ -768,5 +768,30 @@
#endif
+#ifndef _WIN32_WINNT_WINBLUE
+#define _WIN32_WINNT_WINBLUE 0x0603
+#endif
+
+#ifndef _WIN32_WINNT_WINTHRESHOLD
+#define _WIN32_WINNT_WINTHRESHOLD 0x0A00
+#endif
+
+#ifndef _WIN32_WINNT_WIN10
+#define _WIN32_WINNT_WIN10 0x0A00
+#endif
+
+#ifndef NTDDI_WINBLUE
+#define NTDDI_WINBLUE 0x06030000
+#endif
+
+#ifndef NTDDI_WINTHRESHOLD
+#define NTDDI_WINTHRESHOLD 0x0A000000
+#endif
+
+#ifndef NTDDI_WIN10
+#define NTDDI_WIN10 0x0A000000
+#endif
+
+
#endif /* __MINGW32__ */