Skip to content

Commit 715d81c

Browse files
committed
Platform: add a cplusplus requirement to XAudio
In some cases when building the `XAudio` module, we would end up going down C++ paths: ``` C:\Program Files (x86)\Windows Kits\10\/Include/10.0.17763.0/um/xaudio2.h:61:26: error: 'uuid' attribute is not supported in C interface __declspec(uuid("2B02E3CF-2E0B-4ec3-BE45-1B2A3FE7210D")) IXAudio2; ^ <module-includes>:29:10: note: in file included from <module-includes>:29: ^ ``` Although this works with newer SDKs, it does not work with older SDKs. Filter out the module for the time being with a requirement on `C++`. This should be possible to use with `-enable-cxx-interop`.
1 parent ad2873d commit 715d81c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/Platform/winsdk.modulemap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ module WinSDK [system] {
168168
export *
169169

170170
link "xaudio2.lib"
171+
172+
requires cplusplus
171173
}
172174

173175
// XInput 1.4 (Windows 10, XBox) is newer than the XInput 9.1.0 which was

0 commit comments

Comments
 (0)