Skip to content

Commit 76c7cca

Browse files
Enable ManagedObjectWrapper on react-native-macOS (#35146)
Summary: Pull Request resolved: #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
1 parent e3e635e commit 76c7cca

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

ReactCommon/react/utils/ManagedObjectWrapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#endif
1515

1616
#if defined(__OBJC__) && defined(__cplusplus)
17-
#if TARGET_OS_MAC && TARGET_OS_IPHONE
17+
#if TARGET_OS_MAC
1818

1919
#include <memory>
2020

ReactCommon/react/utils/ManagedObjectWrapper.mm

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77

88
#include "ManagedObjectWrapper.h"
99

10-
#if defined(__OBJC__) && defined(__cplusplus)
11-
#if TARGET_OS_MAC && TARGET_OS_IPHONE
10+
#if TARGET_OS_MAC
1211

1312
namespace facebook {
1413
namespace react {
@@ -35,4 +34,3 @@ @implementation RCTInternalGenericWeakWrapper
3534
@end
3635

3736
#endif
38-
#endif

0 commit comments

Comments
 (0)