Procházet zdrojové kódy

Fixed building with an older SDK and macOS target

Sam Lantinga před 4 roky
rodič
revize
1e943e2ad2

+ 1 - 1
include/SDL_config_macosx.h

@@ -147,7 +147,7 @@
 #define SDL_HAPTIC_IOKIT    1
 
 /* 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
 #endif
 

+ 1 - 1
src/joystick/iphoneos/SDL_mfijoystick.m

@@ -42,7 +42,7 @@
 #include "../../events/SDL_events_c.h"
 #endif
 
-#if !TARGET_OS_TV && !TARGET_OS_OSX
+#if TARGET_OS_IOS
 #define SDL_JOYSTICK_iOS_ACCELEROMETER
 #import <CoreMotion/CoreMotion.h>
 #endif