mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-31 08:57:40 +00:00
Fixed building with an older SDK and macOS target
This commit is contained in:
parent
268aa45645
commit
62e39b5fa7
3 changed files with 41 additions and 24 deletions
|
@ -147,6 +147,15 @@
|
|||
#define SDL_JOYSTICK_MFI 1
|
||||
#define SDL_HAPTIC_IOKIT 1
|
||||
|
||||
/* The MFI controller support requires ARC Objective C runtime */
|
||||
#if TARGET_OS_OSX
|
||||
# if __MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_8
|
||||
# undef SDL_JOYSTICK_MFI
|
||||
# elif defined(__i386__) && __MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_12
|
||||
# undef SDL_JOYSTICK_MFI
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Enable the dummy sensor driver */
|
||||
#define SDL_SENSOR_DUMMY 1
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue