Skip to content

Commit 2939a1f

Browse files
dschogitster
authored andcommitted
mingw: bump the minimum Windows version to Vista
Quite some time ago, a last plea to the XP users out there who want to see Windows XP support in Git for Windows, asking them to get engaged and help, vanished into the depths of the universe. We tried for a long time to play nice with the last remaining XP users who somehow manage to build Git from source, but a recent update of mingw-w64 (7.0.0.5233.e0c09544 -> 7.0.0.5245.edf66197) finally dropped the last sign of XP support, and Git for Windows' SDK is no longer able to build core Git's `master` branch as a consequence. (Git for Windows' `master` branch already bumped the minimum Windows version to Vista a while ago, so it is fine.) It is time to require Windows Vista or later to build Git from source. This, incidentally, lets us use quite a few nice new APIs. It also means that we no longer need the inet_pton() and inet_ntop() emulation, which is nice. Signed-off-by: Johannes Schindelin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3571e78 commit 2939a1f

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

config.mak.uname

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,6 @@ ifeq ($(uname_S),Windows)
381381
NO_PYTHON = YesPlease
382382
BLK_SHA1 = YesPlease
383383
ETAGS_TARGET = ETAGS
384-
NO_INET_PTON = YesPlease
385-
NO_INET_NTOP = YesPlease
386384
NO_POSIX_GOODIES = UnfortunatelyYes
387385
NATIVE_CRLF = YesPlease
388386
DEFAULT_HELP_FORMAT = html
@@ -529,8 +527,6 @@ ifneq (,$(findstring MINGW,$(uname_S)))
529527
NO_REGEX = YesPlease
530528
NO_PYTHON = YesPlease
531529
ETAGS_TARGET = ETAGS
532-
NO_INET_PTON = YesPlease
533-
NO_INET_NTOP = YesPlease
534530
NO_POSIX_GOODIES = UnfortunatelyYes
535531
DEFAULT_HELP_FORMAT = html
536532
COMPAT_CFLAGS += -DNOGDI -Icompat -Icompat/win32

git-compat-util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147

148148
#if defined(WIN32) && !defined(__CYGWIN__) /* Both MinGW and MSVC */
149149
# if !defined(_WIN32_WINNT)
150-
# define _WIN32_WINNT 0x0502
150+
# define _WIN32_WINNT 0x0600
151151
# endif
152152
#define WIN32_LEAN_AND_MEAN /* stops windows.h including winsock.h */
153153
#include <winsock2.h>

0 commit comments

Comments
 (0)