We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5047 - Build error in SDL_hidapi_steam.c
Summary: Build error in SDL_hidapi_steam.c
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: joystick (show other bugs)
Version: HG 2.0
Hardware: iPhone/iPod touch Other
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-20 17:37 UTC by David Ludwig
Modified: 2020-03-20 19:09 UTC (History)
0 users

See Also:


Attachments
Fix #1 (1.12 KB, text/plain)
2020-03-20 17:37 UTC, David Ludwig
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Ludwig 2020-03-20 17:37:03 UTC
Created attachment 4272 [details]
Fix #1

When trying to build the latest from SDL HG (at changeset 13646:784ce9766fb9), specifically for iOS via CMake, I get build errors in SDL_hidapi_steam.c, whereby HIDAPI_JoystickDisconnected is being called with the wrong number of arguments.

I'll attach a potential fix.  I'm unfamiliar with that code, and don't want to break anything there, so a code review seems good.  The patch is pretty small (two lines changed).
Comment 1 Sam Lantinga 2020-03-20 19:09:04 UTC
This is fixed, thanks!