Explorar o código

Removed unnecessary __builtin_available check

Sam Lantinga hai 1 ano
pai
achega
0eaa6197c5
Modificáronse 1 ficheiros con 0 adicións e 5 borrados
  1. 0 5
      src/joystick/apple/SDL_mfijoystick.m

+ 0 - 5
src/joystick/apple/SDL_mfijoystick.m

@@ -727,16 +727,11 @@ static bool IOS_JoystickInit(void)
     }
     }
 
 
 #ifdef SDL_PLATFORM_MACOS
 #ifdef SDL_PLATFORM_MACOS
-#if SDL_HAS_BUILTIN(__builtin_available)
     if (@available(macOS 10.16, *)) {
     if (@available(macOS 10.16, *)) {
         // Continue with initialization on macOS 11+
         // Continue with initialization on macOS 11+
     } else {
     } else {
         return true;
         return true;
     }
     }
-#else
-    // No @available, must be an older macOS version
-    return true;
-#endif
 #endif
 #endif
 
 
     @autoreleasepool {
     @autoreleasepool {