Commit Graph

3 Commits

Author SHA1 Message Date
Egor Zhdan
a58b623d9e [WinSDK] Modularize <winapifamily.h>
This prevents other Clang modules from hijacking this header, causing modularization errors. For example, several WinRT headers `#include <winapifamily.h>`.
2025-10-03 19:26:15 +01:00
Jonathan Grynspan
4dd71a437e Rename the new _GUID clang module to _GUIDDef. (#84466)
This PR changes the name of the clang module introduced in #83914 from
`_GUID` to `_GUIDDef`. This change is necessary because the Windows SDK
declares a type named `_GUID` and Swift gets confused when a module and
a type have the same name.

This confusion is the motivation for
[SE-0491](https://github.com/swiftlang/swift-evolution/blob/main/proposals/0491-module-selectors.md),
but we can't just wait for a fix because the new module is a
source-breaking change and clients won't be able to adopt the proposed
syntax for some time.
2025-09-23 18:53:23 -07:00
Egor Zhdan
28f9db7bfa [WinSDK] Modularize <guiddef.h>
This fixes modularization errors that arise when importing a C++ header that contains `#include <guiddef.h>`, which might hijack this header from the WinSDK module where it belongs.
2025-08-28 22:21:55 +01:00