From c80bfef9e3134df3d5480c14531e38ce35fa2b2b Mon Sep 17 00:00:00 2001 From: Paul Melnikow Date: Tue, 2 Apr 2013 11:24:38 -0700 Subject: [PATCH 1/2] Fix macro to work correctly under 10.7 SDK / iOS 4 SDK --- AFNetworking/AFURLConnectionOperation.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AFNetworking/AFURLConnectionOperation.h b/AFNetworking/AFURLConnectionOperation.h index c50ce24..d240a7c 100644 --- a/AFNetworking/AFURLConnectionOperation.h +++ b/AFNetworking/AFURLConnectionOperation.h @@ -93,8 +93,8 @@ typedef enum { #endif @interface AFURLConnectionOperation : NSOperation = __IPHONE_5_0) || \ - (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= __MAC_10_8) +#if (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && defined(__IPHONE_5_0) && __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_5_0) || \ + (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && defined(__MAC_10_8) && __MAC_OS_X_VERSION_MIN_REQUIRED >= __MAC_10_8) NSURLConnectionDataDelegate, #endif NSCoding, NSCopying> From bc7544bb8aa77bed28623ffbdcf01a2e41724a13 Mon Sep 17 00:00:00 2001 From: Paul Melnikow Date: Tue, 2 Apr 2013 12:22:53 -0700 Subject: [PATCH 2/2] Use Apple's recommended style, and fix so it works under 10.7 or pre-5.0 --- AFNetworking/AFURLConnectionOperation.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AFNetworking/AFURLConnectionOperation.h b/AFNetworking/AFURLConnectionOperation.h index d240a7c..8f8cd4e 100644 --- a/AFNetworking/AFURLConnectionOperation.h +++ b/AFNetworking/AFURLConnectionOperation.h @@ -93,8 +93,8 @@ typedef enum { #endif @interface AFURLConnectionOperation : NSOperation = __IPHONE_5_0) || \ - (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && defined(__MAC_10_8) && __MAC_OS_X_VERSION_MIN_REQUIRED >= __MAC_10_8) +#if (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 50000) || \ + (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080) NSURLConnectionDataDelegate, #endif NSCoding, NSCopying>