[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.
This commit is contained in:
Egor Zhdan
2025-08-26 12:02:08 +01:00
parent 521c2cea94
commit 28f9db7bfa
9 changed files with 60 additions and 10 deletions

View File

@@ -0,0 +1,9 @@
// RUN: %target-build-swift %s
// REQUIRES: OS=windows-msvc
// Make sure that importing WinSDK brings in the GUID type, which is declared in
// /shared and not in /um.
import WinSDK
public func usesGUID(_ x: GUID) {}