diff --git a/Libraries/Image/RCTImageLoaderWithAttributionProtocol.h b/Libraries/Image/RCTImageLoaderWithAttributionProtocol.h index 2e9d20ec543..f577b524278 100644 --- a/Libraries/Image/RCTImageLoaderWithAttributionProtocol.h +++ b/Libraries/Image/RCTImageLoaderWithAttributionProtocol.h @@ -12,6 +12,8 @@ @protocol RCTImageLoaderWithAttributionProtocol +// TODO (T61325135): Remove C++ checks +#ifdef __cplusplus /** * Same as the variant in RCTImageURLLoaderProtocol, but allows passing attribution * information that each image URL loader can process. @@ -25,5 +27,6 @@ progressBlock:(RCTImageLoaderProgressBlock)progressBlock partialLoadBlock:(RCTImageLoaderPartialLoadBlock)partialLoadBlock completionBlock:(RCTImageLoaderCompletionBlock)completionBlock; +#endif @end diff --git a/Libraries/Image/RCTImageURLLoaderWithAttribution.h b/Libraries/Image/RCTImageURLLoaderWithAttribution.h index ed2c9bab7a8..f5ee3e0c4f9 100644 --- a/Libraries/Image/RCTImageURLLoaderWithAttribution.h +++ b/Libraries/Image/RCTImageURLLoaderWithAttribution.h @@ -7,6 +7,8 @@ #import +// TODO (T61325135): Remove C++ checks +#ifdef __cplusplus namespace facebook { namespace react { @@ -17,6 +19,7 @@ struct ImageURLLoaderAttribution { } // namespace react } // namespace facebook +#endif /** * Same as the RCTImageURLLoader interface, but allows passing in optional `attribution` information. @@ -24,6 +27,8 @@ struct ImageURLLoaderAttribution { */ @protocol RCTImageURLLoaderWithAttribution +// TODO (T61325135): Remove C++ checks +#ifdef __cplusplus /** * Same as the RCTImageURLLoader variant above, but allows optional `attribution` information. */ @@ -35,5 +40,6 @@ struct ImageURLLoaderAttribution { progressHandler:(RCTImageLoaderProgressBlock)progressHandler partialLoadHandler:(RCTImageLoaderPartialLoadBlock)partialLoadHandler completionHandler:(RCTImageLoaderCompletionBlock)completionHandler; +#endif @end