summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-07-02 07:27:09 -0700
committerEdward Thomson <ethomson@edwardthomson.com>2018-10-20 05:50:20 -0700
commitb8bdffb55b4b249ab445d420038a1a97a8dcab5e (patch)
tree8ea853ec3b2ab0a6fd781a0ec63bb5ab241c3719
parent0fccf0179dadadc63006902c5acb4fb34873dadd (diff)
downloadlibgit2-b8bdffb55b4b249ab445d420038a1a97a8dcab5e.tar.gz
cmake: increase WIN32_WINNT to Vista
Increase the WIN32_WINNT level to 0x0600, which enables support for new APIs from Windows 6.0 (Vista). We had previously set this to 0x0501, which was Windows XP. Although we removed XP support many years ago, there was no need to update this level previously. We're doing so now explicitly so that we can get support for the `CreateSymbolicLink` API.
-rw-r--r--src/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 157ce8000..8ba3aa590 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -423,7 +423,7 @@ FILE(GLOB SRC_H
# On Windows use specific platform sources
IF (WIN32 AND NOT CYGWIN)
- ADD_DEFINITIONS(-DWIN32 -D_WIN32_WINNT=0x0501)
+ ADD_DEFINITIONS(-DWIN32 -D_WIN32_WINNT=0x0600)
IF(MSVC)
SET(WIN_RC "win32/git2.rc")