all repos — mgba @ fec583d9b27a8b07eb5e53441971c7c8d9a07ed1

mGBA Game Boy Advance Emulator

SDL: Fix SDL 1.2 build
Jeffrey Pfau jeffrey@endrift.com
Wed, 17 Feb 2016 23:04:03 -0800
commit

fec583d9b27a8b07eb5e53441971c7c8d9a07ed1

parent

3c31ae12601030b9b3c193e7a95d8187c3fb7a2c

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M src/platform/sdl/sdl-events.hsrc/platform/sdl/sdl-events.h

@@ -25,11 +25,13 @@

struct Configuration; struct SDL_JoystickCombo { - SDL_JoystickID id; size_t index; SDL_Joystick* joystick; #if SDL_VERSION_ATLEAST(2, 0, 0) SDL_Haptic* haptic; + SDL_JoystickID id; +#else + int id; #endif };