diff options
author | Thierry Crozat | 2018-10-28 18:06:09 +0000 |
---|---|---|
committer | Thierry Crozat | 2018-10-28 18:08:38 +0000 |
commit | cc1e43bd2d4b88218337b2318fab0c0b67d66c78 (patch) | |
tree | 18b933ac99258ccb9aeeafbb091efb8274e794cd /backends/platform | |
parent | bc8b97cf1c11836e0d2f47ba91837eb43f088f8d (diff) | |
download | scummvm-rg350-cc1e43bd2d4b88218337b2318fab0c0b67d66c78.tar.gz scummvm-rg350-cc1e43bd2d4b88218337b2318fab0c0b67d66c78.tar.bz2 scummvm-rg350-cc1e43bd2d4b88218337b2318fab0c0b67d66c78.zip |
IOS: Disable code using safeAreaInsets when compiling with iOS SDK 10 or below
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/ios7/ios7_video.mm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/backends/platform/ios7/ios7_video.mm b/backends/platform/ios7/ios7_video.mm index 955f54a082..8e3edb3d84 100644 --- a/backends/platform/ios7/ios7_video.mm +++ b/backends/platform/ios7/ios7_video.mm @@ -801,6 +801,12 @@ uint getSizeNextPOT(uint size) { #endif -(void)adjustViewFrameForSafeArea { + // The code below does not quite compile with SDKs older than 11.0. + // warning: instance method '-safeAreaInsets' not found (return type defaults to 'id') + // error: no viable conversion from 'id' to 'UIEdgeInsets' + // So for now disable this code when compiled with an older SDK, which means it is only + // available when running on iOS 11+ if it has been compiled on iOS 11+ +#ifdef __IPHONE_11_0 #if __has_builtin(__builtin_available) if ( @available(iOS 11,*) ) { #else @@ -819,6 +825,7 @@ uint getSizeNextPOT(uint size) { } self.frame = newFrame; } +#endif } - (void)setViewTransformation { |