mirror of
https://github.com/encounter/SDL.git
synced 2025-12-08 13:15:10 +00:00
Fixed building with an older SDK and macOS target
This commit is contained in:
@@ -147,7 +147,7 @@
|
|||||||
#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 __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 && !defined(__i386__)
|
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 && !defined(__i386__)
|
||||||
#define SDL_JOYSTICK_MFI 1
|
#define SDL_JOYSTICK_MFI 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
#include "../../events/SDL_events_c.h"
|
#include "../../events/SDL_events_c.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !TARGET_OS_TV && !TARGET_OS_OSX
|
#if TARGET_OS_IOS
|
||||||
#define SDL_JOYSTICK_iOS_ACCELEROMETER
|
#define SDL_JOYSTICK_iOS_ACCELEROMETER
|
||||||
#import <CoreMotion/CoreMotion.h>
|
#import <CoreMotion/CoreMotion.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user