Skip to content

WinSDK import fails with Windows SDK 10.0.17763.0 #73502

Open
@SlugFiller

Description

@SlugFiller

Description

Caused by #70195.

Produces such error messages as:

C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um/xaudio2fx.h:29:1: error: unknown type name 'class'
class __declspec(uuid("4FC3B166-972A-40CF-BC37-7DB03DB2FBA3")) AudioVolumeMeter;
^

or

C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um/xaudio2fx.h:265:8: error: unknown type name 'bool'
    ,  bool sevenDotOneReverb = true
       ^

I don't know which version of xaudio29fx.h is a C header. But the one obtainable via winget install --id=Microsoft.WindowsSDK.10.0.17763 -e or choco install windows-sdk-10-version-1809-all is very clearly a C++ header.

If this version of the Windows SDK is intentionally unsupported, then the documentation should include instructions for installing a supported version.

Reproduction

import WinSDK

Expected behavior

Should build without errors

Environment

Swift version 5.10 (swift-5.10-RELEASE)
Target: x86_64-unknown-windows-msvc

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    SDKOverlayWindowsPlatform: WindowsbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions