From 80c15f21b4556394330918d32e30b6c1bbbce42e Mon Sep 17 00:00:00 2001 From: Scott Moreau Date: Thu, 12 Jul 2012 16:38:29 -0600 Subject: Add SDL2 support to build system. Dolphin code already builds against SDL2 but the build system never checks for SDL2, which is the what latest SDL is called now. SDL2 replaces SDL 1.3. This allows Dolphin to be build against SDL2, which activates certain new features such as the haptic interface. --- Source/Core/InputCommon/Src/ControllerInterface/SDL/SDL.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'Source/Core/InputCommon/Src/ControllerInterface') diff --git a/Source/Core/InputCommon/Src/ControllerInterface/SDL/SDL.h b/Source/Core/InputCommon/Src/ControllerInterface/SDL/SDL.h index 5edc171dc4..75ddc671a5 100644 --- a/Source/Core/InputCommon/Src/ControllerInterface/SDL/SDL.h +++ b/Source/Core/InputCommon/Src/ControllerInterface/SDL/SDL.h @@ -5,23 +5,15 @@ #include -#ifdef _WIN32 - #include -#else - #include -#endif +#include #if SDL_VERSION_ATLEAST(1, 3, 0) #define USE_SDL_HAPTIC #endif #ifdef USE_SDL_HAPTIC + #include #define SDL_INIT_FLAGS SDL_INIT_JOYSTICK | SDL_INIT_HAPTIC - #ifdef _WIN32 - #include - #else - #include - #endif #else #define SDL_INIT_FLAGS SDL_INIT_JOYSTICK #endif -- cgit v1.2.3