diff options
author | ulatekh <ulatekh@yahoo.com> | 2021-08-30 23:10:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-09-03 14:04:38 (GMT) |
commit | 115152ce103ddaf9ae4bc43d362d892731de8307 (patch) | |
tree | d3776f86e244017ac52ff51e3eee283212239bec /Source | |
parent | 31c5700d4322ecfa169db2fccf385d6eced4e737 (diff) | |
download | CMake-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.cxx | 4 |
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) |