[flang-commits] [flang] [llvm] [flang] improve compatibility with mingw headers (PR #172041)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Tue Dec 23 14:05:46 PST 2025
================
@@ -20,7 +20,9 @@
// Target Windows 2000 and above. This is needed for newer Windows API
// functions, e.g. GetComputerNameExA()
+#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
+#endif
----------------
eugeneepshteyn wrote:
If `_WIN32_WINNT` value can come externally, then there should be a check that it's no less than `0x0500`. If it's less, then it should be compilation error.
https://github.com/llvm/llvm-project/pull/172041
More information about the flang-commits
mailing list