Fixed compiling on tvOS

This commit is contained in:
Sam Lantinga 2020-11-25 11:31:17 -08:00
parent 9ec2cf5629
commit 6a7f29cdbb
2 changed files with 16 additions and 13 deletions

View file

@ -528,7 +528,7 @@ JoystickAlreadyKnown(IOHIDDeviceRef ioHIDDeviceObject)
{
recDevice *i;
#if defined(SDL_JOYSTICK_MFI) && !TARGET_OS_IOS
#if defined(SDL_JOYSTICK_MFI)
extern SDL_bool IOS_SupportedHIDDevice(IOHIDDeviceRef device);
if (IOS_SupportedHIDDevice(ioHIDDeviceObject)) {
return SDL_TRUE;