Sfoglia il codice sorgente

Use FOUNDATION_EXTERN for global variable

Global variables that can be accessed from both C (or Objective-C) and
C++ (or Objective-C++) source files should be marked `extern "C"` when
in C++ mode (which is what `FOUNDATION_EXTERN` does), to ensure
consistent access across languages.
Shoaib Meenai 8 anni fa
parent
commit
ed49a4fc89
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Classes/Network/PonyDebugger/FLEXNetworkObserver.h

+ 1 - 1
Classes/Network/PonyDebugger/FLEXNetworkObserver.h

@@ -14,7 +14,7 @@
 
 #import <Foundation/Foundation.h>
 
-extern NSString *const kFLEXNetworkObserverEnabledStateChangedNotification;
+FOUNDATION_EXTERN NSString *const kFLEXNetworkObserverEnabledStateChangedNotification;
 
 /// This class swizzles NSURLConnection and NSURLSession delegate methods to observe events in the URL loading system.
 /// High level network events are sent to the default FLEXNetworkRecorder instance which maintains the request history and caches response bodies.