diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2018-10-03 12:43:43 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-04 05:39:56 -0700 |
commit | 3571e78aa490e9e2d5cf12372ae042c782b27b53 (patch) | |
tree | 32024b5f63631c85659f37e2aa27c85d58a6802f /git-compat-util.h | |
parent | compat/poll: prepare for targeting Windows Vista (diff) | |
download | tgif-3571e78aa490e9e2d5cf12372ae042c782b27b53.tar.xz |
mingw: set _WIN32_WINNT explicitly for Git for Windows
Previously, we only ever declared a target Windows version if compiling
with Visual C.
Which meant that we were relying on the MinGW headers to guess which
Windows version we want to target...
Let's be explicit about it, in particular because we actually want to
bump the target Windows version to Vista (which we will do in the next
commit).
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r-- | git-compat-util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-compat-util.h b/git-compat-util.h index 5f2e90932f..3ba93d9c15 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -146,7 +146,7 @@ #define _SGI_SOURCE 1 #if defined(WIN32) && !defined(__CYGWIN__) /* Both MinGW and MSVC */ -# if defined (_MSC_VER) && !defined(_WIN32_WINNT) +# if !defined(_WIN32_WINNT) # define _WIN32_WINNT 0x0502 # endif #define WIN32_LEAN_AND_MEAN /* stops windows.h including winsock.h */ |