Wrap global variables in extern C
Reviewed By: compnerd Differential Revision: D7144899 fbshipit-source-id: d40bda0e9225734398e35adc582b8932c0280b24
This commit is contained in:
parent
0d148ad67a
commit
ffcd067977
|
@ -7,10 +7,18 @@
|
|||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern NSString *const RCTBundleURLProviderUpdatedNotification;
|
||||
|
||||
extern const NSUInteger kRCTBundleURLProviderDefaultPort;
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
@interface RCTBundleURLProvider : NSObject
|
||||
|
||||
/**
|
||||
|
|
|
@ -12,8 +12,16 @@
|
|||
@class RCTPackagerClientResponder;
|
||||
@class RCTReconnectingWebSocket;
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern const int RCT_PACKAGER_CLIENT_PROTOCOL_VERSION;
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
@protocol RCTPackagerClientMethod <NSObject>
|
||||
|
||||
- (void)handleRequest:(NSDictionary<NSString *, id> *)params withResponder:(RCTPackagerClientResponder *)responder;
|
||||
|
|
Loading…
Reference in New Issue