[libcxx-commits] [libcxx] 2580624 - [libcxx] avoid include Uppercase windows headers (#208903)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jul 17 02:11:51 PDT 2026
Author: cqwrteur
Date: 2026-07-17T12:11:45+03:00
New Revision: 2580624091e36b85c162439513eef8e752217a1d
URL: https://github.com/llvm/llvm-project/commit/2580624091e36b85c162439513eef8e752217a1d
DIFF: https://github.com/llvm/llvm-project/commit/2580624091e36b85c162439513eef8e752217a1d.diff
LOG: [libcxx] avoid include Uppercase windows headers (#208903)
We should use unknwn.h and windows.h instead of Unknwn.h and Windows.h
because Linux and other non‑Windows systems treat filenames as
case‑sensitive. Windows does not, so mixed‑case includes work there but
break elsewhere. Both mingw‑w64‑crt and windows‑msvc‑sysroot provide all
Windows headers in fully lowercase, so using the lowercase forms ensures
consistent cross‑platform builds.
Fixes #208901
Added:
Modified:
libcxx/src/support/runtime/exception_pointer_msvc.ipp
Removed:
################################################################################
diff --git a/libcxx/src/support/runtime/exception_pointer_msvc.ipp b/libcxx/src/support/runtime/exception_pointer_msvc.ipp
index 72360a2d791bd..3102d1ee93db2 100644
--- a/libcxx/src/support/runtime/exception_pointer_msvc.ipp
+++ b/libcxx/src/support/runtime/exception_pointer_msvc.ipp
@@ -14,8 +14,8 @@ _LIBCPP_CLANG_DIAGNOSTIC_IGNORED("-Wmultichar")
#include <cstdlib>
#include <cstring>
-#include <Unknwn.h>
-#include <Windows.h>
+#include <unknwn.h>
+#include <windows.h>
struct _ThrowInfo;
#include <eh.h>
#include <ehdata.h>
More information about the libcxx-commits
mailing list