mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-16 14:56:00 +00:00
Removed unnecessary __builtin_available check
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user