From 76c7ccaa60c4e820757c5d8cd8ccc80a2cb5f4a0 Mon Sep 17 00:00:00 2001 From: Christoph Purrer Date: Mon, 31 Oct 2022 05:31:13 -0700 Subject: [PATCH] Enable ManagedObjectWrapper on react-native-macOS (#35146) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/35146 This class is used by Fabric - but does not compile on macOS yet. Changelog: [iOS][Fixed] Make ManagedObjectWrapper compile on macOS Reviewed By: javache Differential Revision: D40839241 fbshipit-source-id: 73b93a9963db89af19529fbfd60a64f4e5aaf036 --- ReactCommon/react/utils/ManagedObjectWrapper.h | 2 +- ReactCommon/react/utils/ManagedObjectWrapper.mm | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ReactCommon/react/utils/ManagedObjectWrapper.h b/ReactCommon/react/utils/ManagedObjectWrapper.h index 727499abd6bd42..3af8b158eb663c 100644 --- a/ReactCommon/react/utils/ManagedObjectWrapper.h +++ b/ReactCommon/react/utils/ManagedObjectWrapper.h @@ -14,7 +14,7 @@ #endif #if defined(__OBJC__) && defined(__cplusplus) -#if TARGET_OS_MAC && TARGET_OS_IPHONE +#if TARGET_OS_MAC #include diff --git a/ReactCommon/react/utils/ManagedObjectWrapper.mm b/ReactCommon/react/utils/ManagedObjectWrapper.mm index 69bde90f422c5e..44e4241f48460c 100644 --- a/ReactCommon/react/utils/ManagedObjectWrapper.mm +++ b/ReactCommon/react/utils/ManagedObjectWrapper.mm @@ -7,8 +7,7 @@ #include "ManagedObjectWrapper.h" -#if defined(__OBJC__) && defined(__cplusplus) -#if TARGET_OS_MAC && TARGET_OS_IPHONE +#if TARGET_OS_MAC namespace facebook { namespace react { @@ -35,4 +34,3 @@ @implementation RCTInternalGenericWeakWrapper @end #endif -#endif