From 1aa908fef40918b1e0ab01414719f1992842acc5 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Fri, 18 Sep 2015 14:19:34 +0200 Subject: [PATCH] ios9: try to fix compilation for ios8 and lower --- Classes/PhoneMainView.m | 7 ++++++- submodules/linphone | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Classes/PhoneMainView.m b/Classes/PhoneMainView.m index 84900a280..09eccf343 100644 --- a/Classes/PhoneMainView.m +++ b/Classes/PhoneMainView.m @@ -226,7 +226,12 @@ static RootViewManager *rootViewManagerInstance = nil; } } -- (UIInterfaceOrientationMask)supportedInterfaceOrientations { +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 90000 +- (UIInterfaceOrientationMask)supportedInterfaceOrientations +#else +- (NSUInteger)supportedInterfaceOrientations +#endif +{ if ([LinphoneManager runningOnIpad] || [mainViewController currentViewSupportsLandscape]) return UIInterfaceOrientationMaskAll; else { diff --git a/submodules/linphone b/submodules/linphone index 04fede562..096b71cd7 160000 --- a/submodules/linphone +++ b/submodules/linphone @@ -1 +1 @@ -Subproject commit 04fede562c4a313d8fd0264a6986718ae222d156 +Subproject commit 096b71cd7e619c90047ff7a03731ecc24005bd7c