Fix iOS build

This commit is contained in:
Cameron Gutman 2019-10-12 19:20:26 -07:00
parent a9e01fc9a9
commit a824c23c59
2 changed files with 3 additions and 3 deletions

View File

@ -504,7 +504,7 @@ static NSMutableSet* hostList;
_streamConfig.height = [streamSettings.height intValue];
_streamConfig.width = [streamSettings.width intValue];
#ifdef TARGET_OS_TV
#if TARGET_OS_TV
// Don't allow streaming 4K on the Apple TV HD
struct utsname systemInfo;
uname(&systemInfo);

View File

@ -35,7 +35,7 @@
#endif
}
#ifdef TARGET_OS_TV
#if TARGET_OS_TV
- (void)controllerPauseButtonPressed:(id)sender { }
- (void)controllerPauseButtonDoublePressed:(id)sender {
Log(LOG_I, @"Menu double-pressed -- backing out of stream");
@ -125,7 +125,7 @@
- (void)updateOverlayText:(NSString*)text {
if (_overlayView == nil) {
_overlayView = [[UITextView alloc] init];
#ifndef TARGET_OS_TV
#if !TARGET_OS_TV
[_overlayView setEditable:NO];
#endif
[_overlayView setUserInteractionEnabled:NO];