Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Import UIKit to avoid build errors from UIDevice references in "User-…
Browse files Browse the repository at this point in the history
…Agent" default header. closes AFNetworking/AFNetworking#542
  • Loading branch information
blakewatters committed Sep 27, 2012
1 parent 70b7e05 commit 5704f0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions AFNetworking/AFHTTPClient.m
Expand Up @@ -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))
Expand Down

0 comments on commit 5704f0a

Please sign in to comment.