From e962a18376ffc9eae28833adafb8f60c27a7f2c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sone=C3=A9=20John?= Date: Fri, 15 Nov 2019 09:49:55 -0400 Subject: [PATCH] Revert "Remove conditional macro" This reverts commit c96d2894895ff5f22f22e18fe6b743b407e55b59. --- XCDYouTubeKit/XCDYouTubeVideoPlayerViewController.h | 4 ++++ XCDYouTubeKit/XCDYouTubeVideoPlayerViewController.m | 2 ++ 2 files changed, 6 insertions(+) diff --git a/XCDYouTubeKit/XCDYouTubeVideoPlayerViewController.h b/XCDYouTubeKit/XCDYouTubeVideoPlayerViewController.h index 812ee9c15..14b53b0f8 100644 --- a/XCDYouTubeKit/XCDYouTubeVideoPlayerViewController.h +++ b/XCDYouTubeKit/XCDYouTubeVideoPlayerViewController.h @@ -9,6 +9,8 @@ #define null_resettable #endif +#if TARGET_OS_IOS || (!defined(TARGET_OS_IOS) && TARGET_OS_IPHONE) + #import NS_ASSUME_NONNULL_BEGIN @@ -124,3 +126,5 @@ MP_EXTERN NSString *const XCDMetadataKeyMediumThumbnailURL DEPRECATED_MSG_ATTRIB MP_EXTERN NSString *const XCDMetadataKeyLargeThumbnailURL DEPRECATED_MSG_ATTRIBUTE("Use XCDYouTubeVideoUserInfoKey instead."); NS_ASSUME_NONNULL_END + +#endif diff --git a/XCDYouTubeKit/XCDYouTubeVideoPlayerViewController.m b/XCDYouTubeKit/XCDYouTubeVideoPlayerViewController.m index ebec6c3c1..659a716ba 100644 --- a/XCDYouTubeKit/XCDYouTubeVideoPlayerViewController.m +++ b/XCDYouTubeKit/XCDYouTubeVideoPlayerViewController.m @@ -1,6 +1,7 @@ // // Copyright (c) 2013-2016 Cédric Luthi. All rights reserved. // +#if TARGET_OS_IOS || (!defined(TARGET_OS_IOS) && TARGET_OS_IPHONE) #import "XCDYouTubeVideoPlayerViewController.h" @@ -207,3 +208,4 @@ - (void) viewWillDisappear:(BOOL)animated } @end +#endif