Wrap global variables in extern C

Reviewed By: compnerd

Differential Revision: D7144899

fbshipit-source-id: d40bda0e9225734398e35adc582b8932c0280b24
This commit is contained in:
Shoaib Meenai 2018-03-02 19:05:03 -08:00 committed by Facebook Github Bot
parent 0d148ad67a
commit ffcd067977
2 changed files with 16 additions and 0 deletions

View File

@ -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
/**

View File

@ -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;