From 3d13aefc70c30b6cf5b8f01a6c83ed1d9f9f1d5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 26 Nov 2019 12:15:36 +0200 Subject: [PATCH] Bump the default _WIN32_WINNT to 0x0601, i.e. Windows 7 Since the C++ libraries require Windows 7, there's little point in keeping the default target for C at Vista. --- README.md | 2 +- build-mingw-w64.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 862bfaf..9a6b7dd 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ normal GCC/binutils based MinGW. everything that GNU windres does. - The toolchain defaults to using the Universal CRT (which is only available out of the box since Windows 10, but can be installed on Vista or newer) - and defaults to targeting Vista. These defaults can be changed in + and defaults to targeting Windows 7. These defaults can be changed in `build-mingw-w64.sh` though. - The toolchain uses Windows native TLS support, which doesn't work properly until Windows Vista. This has no effect on code not using thread local diff --git a/build-mingw-w64.sh b/build-mingw-w64.sh index aa3b9e3..51826c2 100755 --- a/build-mingw-w64.sh +++ b/build-mingw-w64.sh @@ -2,7 +2,7 @@ set -e -DEFAULT_WIN32_WINNT=0x600 +DEFAULT_WIN32_WINNT=0x601 DEFAULT_MSVCRT=ucrt unset HOST @@ -27,7 +27,7 @@ while [ $# -gt 0 ]; do shift done if [ -z "$PREFIX" ]; then - echo $0 [--skip-include-triplet-prefix] [--with-default-win32-winnt=0x600] [--with-default-msvcrt=ucrt] dest + echo $0 [--skip-include-triplet-prefix] [--with-default-win32-winnt=0x601] [--with-default-msvcrt=ucrt] dest exit 1 fi