Fixed building on tvOS
authorSam Lantinga <slouken@libsdl.org>
Mon, 10 Sep 2018 23:00:09 -0700
changeset 12183364f514f94d8
parent 12182 c0d45b4dcfc9
child 12184 02509665751f
Fixed building on tvOS
src/video/uikit/SDL_uikitmodes.m
     1.1 --- a/src/video/uikit/SDL_uikitmodes.m	Mon Sep 10 22:59:49 2018 -0700
     1.2 +++ b/src/video/uikit/SDL_uikitmodes.m	Mon Sep 10 23:00:09 2018 -0700
     1.3 @@ -324,6 +324,7 @@
     1.4      }
     1.5  }
     1.6  
     1.7 +#if !TARGET_OS_TV
     1.8  void SDL_OnApplicationDidChangeStatusBarOrientation()
     1.9  {
    1.10      BOOL isLandscape = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
    1.11 @@ -372,6 +373,7 @@
    1.12          SDL_SendDisplayEvent(display, SDL_DISPLAYEVENT_ORIENTATION, orientation);
    1.13      }
    1.14  }
    1.15 +#endif /* !TARGET_OS_TV */
    1.16  
    1.17  #endif /* SDL_VIDEO_DRIVER_UIKIT */
    1.18