[PATCH] D74599: llvm: Set WINVER, _WIN32_WINNT to 0x601 (Windows 7) for MinGW

Cristian Adam via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 19 08:45:53 PST 2020


cristian.adam updated this revision to Diff 245425.
cristian.adam retitled this revision from "llvm: Set WINVER to 0x601 (Windows 7) for MinGW" to "llvm: Set WINVER, _WIN32_WINNT to 0x601 (Windows 7) for MinGW".
cristian.adam added a comment.

Added _WIN32_WINNT to have the same value as WINVER


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D74599/new/

https://reviews.llvm.org/D74599

Files:
  llvm/cmake/config-ix.cmake


Index: llvm/cmake/config-ix.cmake
===================================================================
--- llvm/cmake/config-ix.cmake
+++ llvm/cmake/config-ix.cmake
@@ -663,3 +663,8 @@
 else()
   set (LLVM_HAVE_OPT_VIEWER_MODULES 0)
 endif()
+
+# Windows 7 or later
+if (MINGW)
+  add_definitions(-DWINVER=0x601 -D_WIN32_WINNT=0x601)
+endif() 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74599.245425.patch
Type: text/x-patch
Size: 343 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200219/ae4b41c8/attachment.bin>


More information about the llvm-commits mailing list