Fixed building with an older SDK and macOS target

This commit is contained in:
Sam Lantinga 2020-11-23 20:57:14 -08:00
parent 268aa45645
commit 62e39b5fa7
3 changed files with 41 additions and 24 deletions

View file

@ -69,7 +69,7 @@ static SDL_JoystickDriver *SDL_joystick_drivers[] = {
#ifdef SDL_JOYSTICK_IOKIT
&SDL_DARWIN_JoystickDriver,
#endif
#if (defined(__IPHONEOS__) || defined(__TVOS__)) && !defined(SDL_JOYSTICK_DISABLED)
#if (defined(__MACOSX__) || defined(__IPHONEOS__) || defined(__TVOS__)) && !defined(SDL_JOYSTICK_DISABLED)
&SDL_IOS_JoystickDriver,
#endif
#ifdef SDL_JOYSTICK_ANDROID