From 963008b316fd6ee80acb9cf9c57333f86c1d3839 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Thu, 3 Oct 2013 12:09:12 +0200
Subject: [PATCH] [win32] Bump default WIN32 API level to 6.0 minus epsilon.

At least WIN32 API level 5.1 is required for IPv6 support
with recent WIN32 header files.

cf [LysLysKOM 20477806].
---
 src/global.h | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/src/global.h b/src/global.h
index 79b17e942c..0acfa0bd3c 100644
--- a/src/global.h
+++ b/src/global.h
@@ -44,21 +44,24 @@
 #define WIN32	100	/* WinNT 1.0 */
 #endif
 
-/* We want WinNT 5.0 API's if available. */
-#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
+/* We want WinNT 5.0+ API's if available.
+ *
+ * We avoid the WinNT 6.0+ API's for now.
+ */
+#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x5ff)
 #undef _WIN32_WINDOWS
-#define _WIN32_WINDOWS 0x0500
+#define _WIN32_WINDOWS 0x05ff
 #endif
 
-#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
+#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x5ff)
 #undef _WIN32_WINNT
-#define _WIN32_WINNT 0x0500
+#define _WIN32_WINNT 0x05ff
 #endif
 
 /* In later versions of the WIN32 SDKs, we also need to define this one. */
-#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
+#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05ffffff)
 #undef NTDDI_VERSION
-#define NTDDI_VERSION 0x05000000
+#define NTDDI_VERSION 0x05ffffff
 #endif
 
 #endif /* __NT__ */
-- 
GitLab