Skip to content

Fix arm64 build against current macOS SDK#33

Open
an1310 wants to merge 1 commit into
OpenEmu:masterfrom
an1310:apple-silicon-revival
Open

Fix arm64 build against current macOS SDK#33
an1310 wants to merge 1 commit into
OpenEmu:masterfrom
an1310:apple-silicon-revival

Conversation

@an1310
Copy link
Copy Markdown

@an1310 an1310 commented May 21, 2026

The Switch Pro controller HID handler has a struct field typed as an
output-report enum, but compares it against an input-report enum value.
Older compilers tolerated the mismatch; current clang rejects it under
-Werror as a comparison of different enumeration types, which breaks
the build.

The struct holds an acknowledgement received from the controller, so the
field should be the input-report type. Corrected accordingly. Both enums
are uint8_t-backed, so there is no layout or ABI change.

Builds arm64 against the macOS 26 SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant