Browse Source

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.
ulatekh 4 năm trước cách đây
mục cha
commit
115152ce10
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      Source/kwsys/SystemTools.cxx

+ 4 - 0
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)