Skip to content

Commit

Permalink
Removed unnecessary __builtin_available check
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 15, 2025
1 parent f3f8596 commit 636b5dc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/joystick/apple/SDL_mfijoystick.m
Original file line number Diff line number Diff line change
Expand Up @@ -727,16 +727,11 @@ static bool IOS_JoystickInit(void)
}

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

@autoreleasepool {
Expand Down

0 comments on commit 636b5dc

Please sign in to comment.