[lld] Fix build failure of lld/ELF/OutputSections.cpp (PR #70368)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 1 14:30:44 PDT 2023


================
@@ -22,6 +22,8 @@
 #include "llvm/Support/Path.h"
 #include "llvm/Support/TimeProfiler.h"
 #if LLVM_ENABLE_ZLIB
+// Avoid introducing max as a macro from Windows headers.
----------------
MaskRay wrote:

`// Avoid introducing max as a macro from windows.h on Windows.`

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


More information about the llvm-commits mailing list