[llvm] Support: unlock Windows API support, switch to Windows 10 RS1+ APIs (PR #102240)

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 14 00:31:23 PDT 2024


================
@@ -21,11 +21,17 @@
 #ifndef LLVM_SUPPORT_WINDOWSSUPPORT_H
 #define LLVM_SUPPORT_WINDOWSSUPPORT_H
 
+#if defined(__MINGW32__)
 // mingw-w64 tends to define it as 0x0502 in its headers.
 #undef _WIN32_WINNT
+#undef NTDDI_VERSION
+// Expose APIs from Windows 10 RS1. We only require Windows 7 at runtime, so
+// make sure that we only use such features optionall, with fallbacks where
----------------
mstorsjo wrote:

Typo, `optionall`, missing a `y`

https://github.com/llvm/llvm-project/pull/102240


More information about the llvm-commits mailing list