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

This commit is contained in:
毛泽智 2019-09-05 14:52:04 +08:00
parent 8ffbe8b8c1
commit 050aa883c8
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@
#import "SDInternalMacros.h" #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 // 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 NSURLSessionTaskPriorityHigh = 0.75;
const float NSURLSessionTaskPriorityDefault = 0.5; const float NSURLSessionTaskPriorityDefault = 0.5;
const float NSURLSessionTaskPriorityLow = 0.25; const float NSURLSessionTaskPriorityLow = 0.25;