[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

(cherry picked from commit 2580624091)
This commit is contained in:
cqwrteur 2026-07-17 17:11:45 +08:00 committed by Douglas Yung
parent 44addbd4e1
commit 28af770db4
No known key found for this signature in database
GPG key ID: 316C56D064CACBA5

View file

@ -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>