From c4034080acb0a37806c60634794d16d5d768f37a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 20 Sep 2014 17:31:03 -0400 Subject: [PATCH] iOS: Fix switch warning in RAGameView.m --- apple/common/RAGameView.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apple/common/RAGameView.m b/apple/common/RAGameView.m index 6b24f09cb3..4e1e1824b8 100644 --- a/apple/common/RAGameView.m +++ b/apple/common/RAGameView.m @@ -14,6 +14,7 @@ * If not, see . */ +#import #import "RetroArch_Apple.h" #include "../../general.h" @@ -198,6 +199,11 @@ static GLContextClass* g_context; return (apple_frontend_settings.orientation_flags & UIInterfaceOrientationMaskLandscapeLeft); case UIInterfaceOrientationLandscapeRight: return (apple_frontend_settings.orientation_flags & UIInterfaceOrientationMaskLandscapeRight); + +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_8_0 + case UIInterfaceOrientationUnknown: + return (apple_frontend_settings.orientation_flags & UIInterfaceOrientationMaskAll); +#endif } return YES;