Import UIKit to avoid build errors from UIDevice references in "User-Agent" default header. closes AFNetworking/AFNetworking#542
This commit is contained in:
parent
70b7e0522c
commit
5704f0ae8d
@ -36,6 +36,10 @@
|
||||
#import <netdb.h>
|
||||
#endif
|
||||
|
||||
#if __IPHONE_OS_VERSION_MIN_REQUIRED
|
||||
#import <UIKit/UIKit.h>
|
||||
#endif
|
||||
|
||||
// Workaround for management of dispatch_retain() / dispatch_release() by ARC with iOS 6 / Mac OS X 10.8
|
||||
#if (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && (!defined(__IPHONE_6_0) || __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_6_0)) || \
|
||||
(defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && (!defined(__MAC_10_8) || __MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_8))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user