Commit af823cc1d95704cf6b3f9f39a62c460041ef0886

Sam Lantinga 2018-09-10T23:00:09

Fixed building on tvOS

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/src/video/uikit/SDL_uikitmodes.m b/src/video/uikit/SDL_uikitmodes.m
index e9224e1..acf739b 100644
--- a/src/video/uikit/SDL_uikitmodes.m
+++ b/src/video/uikit/SDL_uikitmodes.m
@@ -324,6 +324,7 @@ UIKit_QuitModes(_THIS)
     }
 }
 
+#if !TARGET_OS_TV
 void SDL_OnApplicationDidChangeStatusBarOrientation()
 {
     BOOL isLandscape = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
@@ -372,6 +373,7 @@ void SDL_OnApplicationDidChangeStatusBarOrientation()
         SDL_SendDisplayEvent(display, SDL_DISPLAYEVENT_ORIENTATION, orientation);
     }
 }
+#endif /* !TARGET_OS_TV */
 
 #endif /* SDL_VIDEO_DRIVER_UIKIT */