From a4c04ad230ab3fb733ee6804530d7eccba365cc8 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 30 Nov 2021 10:32:21 -0800 Subject: [PATCH] Fixed building with iOS SDK prior to 13.0 Fixes https://github.com/libsdl-org/SDL/pull/5045 --- src/joystick/iphoneos/SDL_mfijoystick.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/joystick/iphoneos/SDL_mfijoystick.m b/src/joystick/iphoneos/SDL_mfijoystick.m index 3508736e6..30e438900 100644 --- a/src/joystick/iphoneos/SDL_mfijoystick.m +++ b/src/joystick/iphoneos/SDL_mfijoystick.m @@ -66,6 +66,9 @@ static NSString *GCInputXboxShareButton = @"Button Share"; #if defined(__MACOSX__) && (__MAC_OS_X_VERSION_MAX_ALLOWED <= 101600) + (BOOL)supportsHIDDevice:(IOHIDDeviceRef)device; #endif +#if !((__IPHONE_OS_VERSION_MAX_ALLOWED >= 130000) || (__APPLETV_OS_VERSION_MAX_ALLOWED >= 130000) || (__MAC_OS_VERSION_MAX_ALLOWED >= 1500000)) +@property(nonatomic, readonly) NSString *productCategory; +#endif @end @interface GCExtendedGamepad (SDL) #if !((__IPHONE_OS_VERSION_MAX_ALLOWED >= 121000) || (__APPLETV_OS_VERSION_MAX_ALLOWED >= 121000) || (__MAC_OS_VERSION_MAX_ALLOWED >= 1401000))