Support MinGW-w64's WinRT headers in zig cc
#23115
Labels
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
os-windows
Milestone
Zig Version
0.14.0
Steps to Reproduce and Observed Behavior
Not sure if the removal of the following headers was intentional but it breaks compilation of SDL3. The current workaround is to simply include the following files by other means if you want to build for Windows.
Main include missing:
{zig-0.13.0}\lib\libc\include\any-windows-any\windows.gaming.input.h
Dependencies of above include:
windows.devices.haptics.h
windows.devices.power.h
windows.foundation.collections.h
windows.foundation.h
windows.foundation.numerics.h
windows.gaming.input.forcefeedback.h
windows.system.h
windows.system.power.h
windowscontracts.h
eventtoken.h
ivectorchangedeventargs.h
Zip of above files if you want to quickly / easily fix your SDL3 build
any-windows-any-from-zig-0.13.0.zip
Files are also used in my own project here:
https://github.com/silbinarywolf/desk-breaker/tree/4f47bd9faa2d3eb4e5fb69fd4a4a2fef82284e33/third-party/sdl/upstream/any-windows-any
Expected Behavior
That these files would not be removed from
lib\libc\include\any-windows-any
between Zig 0.13.0 and Zig 0.14.0The text was updated successfully, but these errors were encountered: