From a0172bd52db4e07f4a00ab64e42e6914289c77fb Mon Sep 17 00:00:00 2001 From: Luis Cruz Date: Mon, 24 Jul 2023 11:21:59 +0100 Subject: [PATCH] Add apple tvos support --- src/message/mod.rs | 4 ++-- src/rc/mod.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/message/mod.rs b/src/message/mod.rs index 86f80dcee..04f2f052c 100644 --- a/src/message/mod.rs +++ b/src/message/mod.rs @@ -26,10 +26,10 @@ macro_rules! objc_try { mod verify; -#[cfg(any(target_os = "macos", target_os = "ios"))] +#[cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos"))] #[path = "apple/mod.rs"] mod platform; -#[cfg(not(any(target_os = "macos", target_os = "ios")))] +#[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "tvos")))] #[path = "gnustep.rs"] mod platform; diff --git a/src/rc/mod.rs b/src/rc/mod.rs index c703f585d..a76f619d9 100644 --- a/src/rc/mod.rs +++ b/src/rc/mod.rs @@ -49,7 +49,7 @@ pub use self::weak::WeakPtr; pub use self::autorelease::autoreleasepool; // These tests use NSObject, which isn't present for GNUstep -#[cfg(all(test, any(target_os = "macos", target_os = "ios")))] +#[cfg(all(test, any(target_os = "macos", target_os = "ios", target_os = "tvos")))] mod tests { use crate::runtime::Object; use super::StrongPtr;