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 4912

Summary: error: 'SDL_Joystick {aka struct _SDL_Joystick}' has no member named 'player_index'
Product: SDL Reporter: Konrad <iryont>
Component: joystickAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: blocker    
Priority: P2 CC: sezeroz
Version: HG 2.1   
Hardware: x86_64   
OS: Windows (All)   

Description Konrad 2019-12-22 12:51:31 UTC
Recent commits from Sam caused critical bug on Windows:

[ 29%] Building C object CMakeFiles/SDL2-static.dir/src/joystick/windows/SDL_xinputjoystick.c.obj
C:\Users\Konrad\Desktop\SDL2\src\joystick\windows\SDL_xinputjoystick.c: In function 'SDL_XINPUT_JoystickOpen':
C:\Users\Konrad\Desktop\SDL2\src\joystick\windows\SDL_xinputjoystick.c:347:13: error: 'SDL_Joystick {aka struct _SDL_Joystick}' has no member named 'player_index'
     joystick->player_index = userId;
             ^~
make[2]: *** [CMakeFiles/SDL2-static.dir/src/joystick/windows/SDL_xinputjoystick.c.obj] Error 1
make[1]: *** [CMakeFiles/SDL2-static.dir/all] Error 2
make: *** [all] Error 2
Comment 1 Ozkan Sezer 2019-12-22 21:43:01 UTC
This should be fixed by https://hg.libsdl.org/SDL/rev/5ee53104caed