aboutsummaryrefslogtreecommitdiff
path: root/compat/poll
diff options
context:
space:
mode:
authorMatthias Aßhauer <mha1993@live.de>2026-04-06 05:45:29 +0000
committerJunio C Hamano <gitster@pobox.com>2026-04-06 10:06:20 -0700
commit66dd13f3f72e8cad1327b6b134dec079936c4b07 (patch)
tree84bc8c11c528e40d1b01930b8baa2dfb3ee63a48 /compat/poll
parent2855562ca6a9c6b0e7bc780b050c1e83c9fcfbd0 (diff)
downloadgit-66dd13f3f72e8cad1327b6b134dec079936c4b07.tar.xz
unify and bump _WIN32_WINNT definition to Windows 8.1
Git for Windows doesn't support anything prior to Windows 8.1 since 2.47.0 and Git followed along with commits like ce6ccba (mingw: drop Windows 7-specific work-around, 2025-08-04). There is no need to pretend to the compiler that we still support Windows Vista, just to lock us out of easy access to newer APIs. There is also no need to have conflicting and unused definitions claiming we support some versions of Windows XP or even Windows NT 4.0. Bump all definitions of _WIN32_WINNT to a realistic value of Windows 8.1. This will also simplify code for a followup commit that will improve cpu core detection on multi-socket systems. Signed-off-by: Matthias Aßhauer <mha1993@live.de> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/poll')
-rw-r--r--compat/poll/poll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/poll/poll.c b/compat/poll/poll.c
index a2becd16cd..ea362b4a8e 100644
--- a/compat/poll/poll.c
+++ b/compat/poll/poll.c
@@ -20,7 +20,7 @@
#define DISABLE_SIGN_COMPARE_WARNINGS
-/* To bump the minimum Windows version to Windows Vista */
+/* To bump the minimum Windows version to Windows 8.1 */
#include "git-compat-util.h"
/* Tell gcc not to warn about the (nfd < 0) tests, below. */
@@ -41,7 +41,7 @@
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
# define WIN32_NATIVE
# if defined (_MSC_VER) && !defined(_WIN32_WINNT)
-# define _WIN32_WINNT 0x0502
+# define _WIN32_WINNT 0x0603
# endif
# include <winsock2.h>
# include <windows.h>