From 981a1958d59b2ed0fb5377f88a473c6f0cced017 Mon Sep 17 00:00:00 2001 From: Ba-ZTokyo Date: Wed, 26 Jun 2013 14:05:35 +0900 Subject: [PATCH] Fix Json macro --- BZFoursquare/BZFoursquareRequest.m | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/BZFoursquare/BZFoursquareRequest.m b/BZFoursquare/BZFoursquareRequest.m index 869a078..e7957db 100755 --- a/BZFoursquare/BZFoursquareRequest.m +++ b/BZFoursquare/BZFoursquareRequest.m @@ -25,9 +25,9 @@ #import #import "BZFoursquareRequest.h" -#if defined(BZ_USE_JSONKIT) +#if BZ_USE_JSONKIT #import "JSONKit.h" -#elif defined(BZ_USE_SBJSON) +#elif BZ_USE_SBJSON #import "SBJson.h" #endif @@ -166,10 +166,10 @@ - (void)connectionDidFinishLoading:(NSURLConnection *)connection { if ([NSJSONSerialization class]) { response = [NSJSONSerialization JSONObjectWithData:[responseString dataUsingEncoding:NSUTF8StringEncoding] options:0 error:&error]; } else { -#if defined(BZ_USE_JSONKIT) +#if BZ_USE_JSONKIT JSONDecoder *decoder = [JSONDecoder decoder]; response = [decoder objectWithData:[responseString dataUsingEncoding:NSUTF8StringEncoding] error:&error]; -#elif defined(BZ_USE_SBJSON) +#elif BZ_USE_SBJSON SBJsonParser *parser = [[[SBJsonParser alloc] init] autorelease]; response = [parser objectWithString:responseString]; if (!response) { @@ -181,10 +181,10 @@ - (void)connectionDidFinishLoading:(NSURLConnection *)connection { #endif } #else -#if defined(BZ_USE_JSONKIT) +#if BZ_USE_JSONKIT JSONDecoder *decoder = [JSONDecoder decoder]; response = [decoder objectWithData:[responseString dataUsingEncoding:NSUTF8StringEncoding] error:&error]; -#elif defined(BZ_USE_SBJSON) +#elif BZ_USE_SBJSON SBJsonParser *parser = [[[SBJsonParser alloc] init] autorelease]; response = [parser objectWithString:responseString]; if (!response) {