mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-11 15:05:29 +00:00
Worked around "Undefined symbol: ___isPlatformVersionAtLeast()" link error on Xcode 11 beta
This commit is contained in:
parent
289d109245
commit
1213fe79d8
|
@ -1733,11 +1733,12 @@ METAL_CreateRenderer(SDL_Window * window, Uint32 flags)
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#ifdef __IPHONE_11_0
|
#ifdef __IPHONE_11_0
|
||||||
if (@available(iOS 11.0, *)) {
|
#pragma clang diagnostic push
|
||||||
if ([mtldevice supportsFeatureSet:MTLFeatureSet_iOS_GPUFamily4_v1]) {
|
#pragma clang diagnostic ignored "-Wunguarded-availability-new"
|
||||||
maxtexsize = 16384;
|
if ([mtldevice supportsFeatureSet:MTLFeatureSet_iOS_GPUFamily4_v1]) {
|
||||||
}
|
maxtexsize = 16384;
|
||||||
} else
|
} else
|
||||||
|
#pragma clang diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
#ifdef __IPHONE_10_0
|
#ifdef __IPHONE_10_0
|
||||||
if ([mtldevice supportsFeatureSet:MTLFeatureSet_iOS_GPUFamily3_v1]) {
|
if ([mtldevice supportsFeatureSet:MTLFeatureSet_iOS_GPUFamily3_v1]) {
|
||||||
|
|
|
@ -230,10 +230,13 @@ UIKit_ForceUpdateHomeIndicator()
|
||||||
if (focus) {
|
if (focus) {
|
||||||
SDL_WindowData *data = (__bridge SDL_WindowData *) focus->driverdata;
|
SDL_WindowData *data = (__bridge SDL_WindowData *) focus->driverdata;
|
||||||
if (data != nil) {
|
if (data != nil) {
|
||||||
if (@available(iOS 11.0, *)) {
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wunguarded-availability-new"
|
||||||
|
if ([data.viewcontroller respondsToSelector:@selector(setNeedsUpdateOfHomeIndicatorAutoHidden)]) {
|
||||||
[data.viewcontroller performSelectorOnMainThread:@selector(setNeedsUpdateOfHomeIndicatorAutoHidden) withObject:nil waitUntilDone:NO];
|
[data.viewcontroller performSelectorOnMainThread:@selector(setNeedsUpdateOfHomeIndicatorAutoHidden) withObject:nil waitUntilDone:NO];
|
||||||
[data.viewcontroller performSelectorOnMainThread:@selector(setNeedsUpdateOfScreenEdgesDeferringSystemGestures) withObject:nil waitUntilDone:NO];
|
[data.viewcontroller performSelectorOnMainThread:@selector(setNeedsUpdateOfScreenEdgesDeferringSystemGestures) withObject:nil waitUntilDone:NO];
|
||||||
}
|
}
|
||||||
|
#pragma clang diagnostic pop
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* !TARGET_OS_TV */
|
#endif /* !TARGET_OS_TV */
|
||||||
|
|
|
@ -57,10 +57,13 @@ SDL_HideHomeIndicatorHintChanged(void *userdata, const char *name, const char *o
|
||||||
@autoreleasepool {
|
@autoreleasepool {
|
||||||
SDL_uikitviewcontroller *viewcontroller = (__bridge SDL_uikitviewcontroller *) userdata;
|
SDL_uikitviewcontroller *viewcontroller = (__bridge SDL_uikitviewcontroller *) userdata;
|
||||||
viewcontroller.homeIndicatorHidden = (hint && *hint) ? SDL_atoi(hint) : -1;
|
viewcontroller.homeIndicatorHidden = (hint && *hint) ? SDL_atoi(hint) : -1;
|
||||||
if (@available(iOS 11.0, *)) {
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wunguarded-availability-new"
|
||||||
|
if ([viewcontroller respondsToSelector:@selector(setNeedsUpdateOfHomeIndicatorAutoHidden)]) {
|
||||||
[viewcontroller setNeedsUpdateOfHomeIndicatorAutoHidden];
|
[viewcontroller setNeedsUpdateOfHomeIndicatorAutoHidden];
|
||||||
[viewcontroller setNeedsUpdateOfScreenEdgesDeferringSystemGestures];
|
[viewcontroller setNeedsUpdateOfScreenEdgesDeferringSystemGestures];
|
||||||
}
|
}
|
||||||
|
#pragma clang diagnostic pop
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue