mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
9
test/stdlib/WinSDK_GUID.swift
Normal file
9
test/stdlib/WinSDK_GUID.swift
Normal 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) {}
|
||||
Reference in New Issue
Block a user