all repos — mgba @ 57b8a511b8ab198109ac23ecb7ac54af7fed34d9

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

57b8a511b8ab198109ac23ecb7ac54af7fed34d9

parent

2b2f5cb6fea48fb43a4d662e1fddc305ca9dc23d

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

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

@@ -23,11 +23,13 @@ struct GBAVideoSoftwareRenderer;

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 };