From 050aa883c84392634b392c1c3386acbe75e8ee45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AF=9B=E6=B3=BD=E6=99=BA?= Date: Thu, 5 Sep 2019 14:52:04 +0800 Subject: [PATCH] Fix (iOS 8 Foundation.framework extern these symbol but the define is in CFNetwork.framework. We just fix this without import ) but not available in MacOS --- SDWebImage/Core/SDWebImageDownloaderOperation.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/Core/SDWebImageDownloaderOperation.m b/SDWebImage/Core/SDWebImageDownloaderOperation.m index c07047e5..f1927de9 100644 --- a/SDWebImage/Core/SDWebImageDownloaderOperation.m +++ b/SDWebImage/Core/SDWebImageDownloaderOperation.m @@ -11,7 +11,7 @@ #import "SDInternalMacros.h" // iOS 8 Foundation.framework extern these symbol but the define is in CFNetwork.framework. We just fix this without import CFNetwork.framework -#if (__IPHONE_OS_VERSION_MIN_REQUIRED && __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_9_0) +#if ((__IPHONE_OS_VERSION_MIN_REQUIRED && __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_9_0) || (__MAC_OS_X_VERSION_MIN_REQUIRED && __MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_11)) const float NSURLSessionTaskPriorityHigh = 0.75; const float NSURLSessionTaskPriorityDefault = 0.5; const float NSURLSessionTaskPriorityLow = 0.25;