Skip to content

Commit

Permalink
Wrap global variables in extern C
Browse files Browse the repository at this point in the history
Reviewed By: compnerd

Differential Revision: D7144899

fbshipit-source-id: d40bda0e9225734398e35adc582b8932c0280b24
  • Loading branch information
smeenai authored and facebook-github-bot committed Mar 3, 2018
1 parent 0d148ad commit ffcd067
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions React/Base/RCTBundleURLProvider.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

/**
Expand Down
8 changes: 8 additions & 0 deletions React/DevSupport/RCTPackagerClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ffcd067

Please sign in to comment.