From a824c23c597d1131b3081e14f7a57ddcd66517c0 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 12 Oct 2019 19:20:26 -0700 Subject: [PATCH] Fix iOS build --- Limelight/ViewControllers/MainFrameViewController.m | 2 +- Limelight/ViewControllers/StreamFrameViewController.m | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Limelight/ViewControllers/MainFrameViewController.m b/Limelight/ViewControllers/MainFrameViewController.m index cdafd7bd..49054b6b 100644 --- a/Limelight/ViewControllers/MainFrameViewController.m +++ b/Limelight/ViewControllers/MainFrameViewController.m @@ -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); diff --git a/Limelight/ViewControllers/StreamFrameViewController.m b/Limelight/ViewControllers/StreamFrameViewController.m index c12fbd04..85220e75 100644 --- a/Limelight/ViewControllers/StreamFrameViewController.m +++ b/Limelight/ViewControllers/StreamFrameViewController.m @@ -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];