From 72090fd4e2ac646294dc153c93806217bbe03043 Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Tue, 11 Oct 2011 10:22:40 -0500 Subject: [PATCH] Adding native JSON serialization macro check for Mac --- AFNetworking/AFJSONRequestOperation.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AFNetworking/AFJSONRequestOperation.m b/AFNetworking/AFJSONRequestOperation.m index 61a4cbf..a8f548c 100644 --- a/AFNetworking/AFJSONRequestOperation.m +++ b/AFNetworking/AFJSONRequestOperation.m @@ -115,7 +115,7 @@ static dispatch_queue_t json_request_operation_processing_queue() { if (!_responseJSON && [self isFinished]) { NSError *error = nil; -#if __IPHONE_OS_VERSION_MIN_REQUIRED > __IPHONE_4_3 +#if __MAC_OS_X_VERSION_MIN_REQUIRED > __MAC_10_6 || __IPHONE_OS_VERSION_MIN_REQUIRED > __IPHONE_4_3 if ([NSJSONSerialization class]) { self.responseJSON = [NSJSONSerialization JSONObjectWithData:self.responseData options:0 error:&error]; } else {