From 1fc5ca648409dea75a379780bc49f06bfe4f25eb Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 23 Nov 2020 22:24:54 -0800 Subject: [PATCH] Fixed building with an older SDK and macOS target --- include/SDL_config_macosx.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/include/SDL_config_macosx.h b/include/SDL_config_macosx.h index 528bee998..7ec8095df 100644 --- a/include/SDL_config_macosx.h +++ b/include/SDL_config_macosx.h @@ -144,16 +144,11 @@ #define SDL_JOYSTICK_HIDAPI 1 #define SDL_JOYSTICK_IOKIT 1 #define SDL_JOYSTICK_VIRTUAL 1 -#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 +#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 && !defined(__i386__) +#define SDL_JOYSTICK_MFI 1 #endif /* Enable the dummy sensor driver */