From ca6d15d8a0499a395cc0a69ad29fcbb2f4ffb2b8 Mon Sep 17 00:00:00 2001 From: Andrey Mikhaylov Date: Mon, 12 Oct 2015 16:42:48 +0200 Subject: [PATCH] Fix linker issues when C++ imports AFNetworkReachabilityManager.h (Fixes #3040) Replace `extern` with `FOUNDATION_EXPORT` which works correctly when C++ imports the header. --- AFNetworking/AFNetworkReachabilityManager.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AFNetworking/AFNetworkReachabilityManager.h b/AFNetworking/AFNetworkReachabilityManager.h index 5a445075e0..e2eb945df0 100644 --- a/AFNetworking/AFNetworkReachabilityManager.h +++ b/AFNetworking/AFNetworkReachabilityManager.h @@ -191,8 +191,8 @@ NS_ASSUME_NONNULL_BEGIN @warning In order for network reachability to be monitored, include the `SystemConfiguration` framework in the active target's "Link Binary With Library" build phase, and add `#import ` to the header prefix of the project (`Prefix.pch`). */ -extern NSString * const AFNetworkingReachabilityDidChangeNotification; -extern NSString * const AFNetworkingReachabilityNotificationStatusItem; +FOUNDATION_EXPORT NSString * const AFNetworkingReachabilityDidChangeNotification; +FOUNDATION_EXPORT NSString * const AFNetworkingReachabilityNotificationStatusItem; ///-------------------- /// @name Functions @@ -201,7 +201,7 @@ extern NSString * const AFNetworkingReachabilityNotificationStatusItem; /** Returns a localized string representation of an `AFNetworkReachabilityStatus` value. */ -extern NSString * AFStringFromNetworkReachabilityStatus(AFNetworkReachabilityStatus status); +FOUNDATION_EXPORT NSString * AFStringFromNetworkReachabilityStatus(AFNetworkReachabilityStatus status); NS_ASSUME_NONNULL_END #endif