From bc7544bb8aa77bed28623ffbdcf01a2e41724a13 Mon Sep 17 00:00:00 2001 From: Paul Melnikow Date: Tue, 2 Apr 2013 12:22:53 -0700 Subject: [PATCH] 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>