Check if __IPHONE_OS_VERSION_MAX_ALLOWED is defined before reference
Unsafe reference is no longer sufficient with newer versions of XCode. See https://bugs.chromium.org/p/webrtc/issues/detail?id=9457#c23 Bug: webrtc:9457 Change-Id: I58ca4456c0abd450b8c42fa87ba4129c772d370d Reviewed-on: https://webrtc-review.googlesource.com/c/104700 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Anders Carlsson <andersc@webrtc.org> Commit-Queue: Anders Carlsson <andersc@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25058}
This commit is contained in:
committed by
Commit Bot
parent
0414040724
commit
d0bc462556
@ -176,7 +176,8 @@ static const NSInteger kMaxInflightBuffers = 1;
|
||||
RTCVideoRotation rotation;
|
||||
NSValue *rotationOverride = self.rotationOverride;
|
||||
if (rotationOverride) {
|
||||
#if defined(__IPHONE_11_0) && (__IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_11_0)
|
||||
#if defined(__IPHONE_11_0) && defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && \
|
||||
(__IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_11_0)
|
||||
if (@available(iOS 11, *)) {
|
||||
[rotationOverride getValue:&rotation size:sizeof(rotation)];
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user