Authored by Bogdan Poplauschi
Committed by GitHub

Merge pull request #1977 from skyline75489/fix/use-foundation-export

Use FOUNDATION_EXPORT over extern
@@ -93,11 +93,11 @@ @@ -93,11 +93,11 @@
93 #define SDDispatchQueueSetterSementics assign 93 #define SDDispatchQueueSetterSementics assign
94 #endif 94 #endif
95 95
96 -extern UIImage *SDScaledImageForKey(NSString *key, UIImage *image); 96 +FOUNDATION_EXPORT UIImage *SDScaledImageForKey(NSString *key, UIImage *image);
97 97
98 typedef void(^SDWebImageNoParamsBlock)(); 98 typedef void(^SDWebImageNoParamsBlock)();
99 99
100 -extern NSString *const SDWebImageErrorDomain; 100 +FOUNDATION_EXPORT NSString *const SDWebImageErrorDomain;
101 101
102 #ifndef dispatch_main_async_safe 102 #ifndef dispatch_main_async_safe
103 #define dispatch_main_async_safe(block)\ 103 #define dispatch_main_async_safe(block)\
@@ -68,8 +68,8 @@ typedef NS_ENUM(NSInteger, SDWebImageDownloaderExecutionOrder) { @@ -68,8 +68,8 @@ typedef NS_ENUM(NSInteger, SDWebImageDownloaderExecutionOrder) {
68 SDWebImageDownloaderLIFOExecutionOrder 68 SDWebImageDownloaderLIFOExecutionOrder
69 }; 69 };
70 70
71 -extern NSString * _Nonnull const SDWebImageDownloadStartNotification;  
72 -extern NSString * _Nonnull const SDWebImageDownloadStopNotification; 71 +FOUNDATION_EXPORT NSString * _Nonnull const SDWebImageDownloadStartNotification;
  72 +FOUNDATION_EXPORT NSString * _Nonnull const SDWebImageDownloadStopNotification;
73 73
74 typedef void(^SDWebImageDownloaderProgressBlock)(NSInteger receivedSize, NSInteger expectedSize, NSURL * _Nullable targetURL); 74 typedef void(^SDWebImageDownloaderProgressBlock)(NSInteger receivedSize, NSInteger expectedSize, NSURL * _Nullable targetURL);
75 75
@@ -10,10 +10,10 @@ @@ -10,10 +10,10 @@
10 #import "SDWebImageDownloader.h" 10 #import "SDWebImageDownloader.h"
11 #import "SDWebImageOperation.h" 11 #import "SDWebImageOperation.h"
12 12
13 -extern NSString * _Nonnull const SDWebImageDownloadStartNotification;  
14 -extern NSString * _Nonnull const SDWebImageDownloadReceiveResponseNotification;  
15 -extern NSString * _Nonnull const SDWebImageDownloadStopNotification;  
16 -extern NSString * _Nonnull const SDWebImageDownloadFinishNotification; 13 +FOUNDATION_EXPORT NSString * _Nonnull const SDWebImageDownloadStartNotification;
  14 +FOUNDATION_EXPORT NSString * _Nonnull const SDWebImageDownloadReceiveResponseNotification;
  15 +FOUNDATION_EXPORT NSString * _Nonnull const SDWebImageDownloadStopNotification;
  16 +FOUNDATION_EXPORT NSString * _Nonnull const SDWebImageDownloadFinishNotification;
17 17
18 18
19 19