Fixed building with an older SDK and macOS target

This commit is contained in:
Sam Lantinga 2020-11-23 22:24:54 -08:00
parent 4121ab6200
commit 1fc5ca6484
1 changed files with 2 additions and 7 deletions

View File

@ -144,16 +144,11 @@
#define SDL_JOYSTICK_HIDAPI 1 #define SDL_JOYSTICK_HIDAPI 1
#define SDL_JOYSTICK_IOKIT 1 #define SDL_JOYSTICK_IOKIT 1
#define SDL_JOYSTICK_VIRTUAL 1 #define SDL_JOYSTICK_VIRTUAL 1
#define SDL_JOYSTICK_MFI 1
#define SDL_HAPTIC_IOKIT 1 #define SDL_HAPTIC_IOKIT 1
/* The MFI controller support requires ARC Objective C runtime */ /* The MFI controller support requires ARC Objective C runtime */
#if TARGET_OS_OSX #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 && !defined(__i386__)
# if __MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_8 #define SDL_JOYSTICK_MFI 1
# undef SDL_JOYSTICK_MFI
# elif defined(__i386__) && __MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_12
# undef SDL_JOYSTICK_MFI
# endif
#endif #endif
/* Enable the dummy sensor driver */ /* Enable the dummy sensor driver */