summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorulatekh <ulatekh@yahoo.com>2021-08-30 16:10:43 -0700
committerBrad King <brad.king@kitware.com>2021-09-03 10:04:38 -0400
commit115152ce103ddaf9ae4bc43d362d892731de8307 (patch)
treed3776f86e244017ac52ff51e3eee283212239bec /Source
parent31c5700d4322ecfa169db2fccf385d6eced4e737 (diff)
downloadcmake-115152ce103ddaf9ae4bc43d362d892731de8307.tar.gz
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 7c26974ef8..f610a7050b 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)