Don't try to call IOS_SupportedHIDDevice() if it's not defined

This commit is contained in:
Sam Lantinga
2020-11-24 07:11:49 -08:00
parent a063b9fbfb
commit 97782e6c64
2 changed files with 5 additions and 2 deletions

View File

@@ -1365,7 +1365,6 @@ IOS_JoystickGetGamepadMapping(int device_index, SDL_GamepadMapping *out)
}
#if TARGET_OS_OSX
extern SDL_bool IOS_SupportedHIDDevice(IOHIDDeviceRef device);
SDL_bool IOS_SupportedHIDDevice(IOHIDDeviceRef device)
{
#ifdef SDL_JOYSTICK_MFI