summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorulatekh <ulatekh@yahoo.com>2021-08-30 23:10:43 (GMT)
committerBrad King <brad.king@kitware.com>2021-09-03 14:04:38 (GMT)
commit115152ce103ddaf9ae4bc43d362d892731de8307 (patch)
treed3776f86e244017ac52ff51e3eee283212239bec /Source
parent31c5700d4322ecfa169db2fccf385d6eced4e737 (diff)
downloadCMake-115152ce103ddaf9ae4bc43d362d892731de8307.zip
CMake-115152ce103ddaf9ae4bc43d362d892731de8307.tar.gz
CMake-115152ce103ddaf9ae4bc43d362d892731de8307.tar.bz2
KWSys: SystemTools: Ensure Windows Vista APIs are available before using them
Backport KWSys commit `4ef5b1063` (SystemTools: Ensure Windows Vista APIs are available before using them, 2021-08-30) to the CMake 3.21 release branch.
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/SystemTools.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index 7c26974..f610a70 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -14,6 +14,10 @@
# endif
#endif
+#if defined(_WIN32) && !defined(_WIN32_WINNT)
+# define _WIN32_WINNT _WIN32_WINNT_VISTA
+#endif
+
#include "kwsysPrivate.h"
#include KWSYS_HEADER(RegularExpression.hxx)
#include KWSYS_HEADER(SystemTools.hxx)