From 614dab47cd68259a8dfacfbda44babf10cef8af9 Mon Sep 17 00:00:00 2001 From: Kudo Chien Date: Fri, 16 Dec 2022 15:40:06 +0800 Subject: [PATCH] Fix build error when inheriting RCTAppDelegate in swift module --- Libraries/AppDelegate/RCTAppDelegate.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/AppDelegate/RCTAppDelegate.h b/Libraries/AppDelegate/RCTAppDelegate.h index b8d00bab93e7cd..e7d1ac2c31efb1 100644 --- a/Libraries/AppDelegate/RCTAppDelegate.h +++ b/Libraries/AppDelegate/RCTAppDelegate.h @@ -9,7 +9,7 @@ #import #import -#if RCT_NEW_ARCH_ENABLED +#if RCT_NEW_ARCH_ENABLED && __cplusplus // When the new architecture is enabled, the RCTAppDelegate imports some additional headers #import #import @@ -100,7 +100,7 @@ @end -#if RCT_NEW_ARCH_ENABLED +#if RCT_NEW_ARCH_ENABLED && __cplusplus /// Extension that makes the RCTAppDelegate conform to New Architecture delegates @interface RCTAppDelegate ()