aboutsummaryrefslogtreecommitdiff
path: root/AddressBook
diff options
context:
space:
mode:
Diffstat (limited to 'AddressBook')
-rw-r--r--AddressBook/GTMABAddressBook.m2
-rw-r--r--AddressBook/GTMABAddressBookTest.m8
2 files changed, 5 insertions, 5 deletions
diff --git a/AddressBook/GTMABAddressBook.m b/AddressBook/GTMABAddressBook.m
index f1f971d..2d99205 100644
--- a/AddressBook/GTMABAddressBook.m
+++ b/AddressBook/GTMABAddressBook.m
@@ -366,7 +366,7 @@ typedef struct {
}
- (id)valueForProperty:(GTMABPropertyID)property {
-#ifdef GTM_IPHONE_SDK
+#if GTM_IPHONE_SDK
id value = GTMCFAutorelease(ABRecordCopyValue(record_, property));
#else // GTM_IPHONE_SDK
id value = GTMCFAutorelease(ABRecordCopyValue(record_, (CFStringRef)property));
diff --git a/AddressBook/GTMABAddressBookTest.m b/AddressBook/GTMABAddressBookTest.m
index 0d1a3cd..7711648 100644
--- a/AddressBook/GTMABAddressBookTest.m
+++ b/AddressBook/GTMABAddressBookTest.m
@@ -247,7 +247,7 @@ static NSString *const kGTMABTestGroupName = @"GTMABAddressBookTestGroupName";
STAssertEqualObjects(string, @"Last", nil);
string = [GTMABPerson localizedPropertyName:kGTMABRecordInvalidID];
-#ifdef GTM_IPHONE_SDK
+#if GTM_IPHONE_SDK
STAssertEqualObjects(string, kGTMABUnknownPropertyName, nil);
#else // GTM_IPHONE_SDK
STAssertEqualObjects(string, kGTMABRecordInvalidID, nil);
@@ -270,7 +270,7 @@ static NSString *const kGTMABTestGroupName = @"GTMABAddressBookTestGroupName";
GTMABImage *image
= [[[GTMABImage alloc] initWithContentsOfFile:phonePath] autorelease];
STAssertNotNil(image, nil);
-#ifdef GTM_IPHONE_SDK
+#if GTM_IPHONE_SDK
data = UIImagePNGRepresentation(image);
#else // GTM_IPHONE_SDK
data = [image TIFFRepresentation];
@@ -285,7 +285,7 @@ static NSString *const kGTMABTestGroupName = @"GTMABAddressBookTestGroupName";
STAssertTrue([person setImage:image], nil);
GTMABImage *image2 = [person image];
STAssertNotNil(image2, nil);
-#ifdef GTM_IPHONE_SDK
+#if GTM_IPHONE_SDK
STAssertEqualObjects(UIImagePNGRepresentation(image),
UIImagePNGRepresentation(image2), nil);
#else // GTM_IPHONE_SDK
@@ -599,7 +599,7 @@ static NSString *const kGTMABTestGroupName = @"GTMABAddressBookTestGroupName";
};
for (size_t j = 0; j < sizeof(types) / sizeof(ABPropertyType); ++j) {
ABPropertyType type = types[j];
-#ifdef GTM_IPHONE_SDK
+#if GTM_IPHONE_SDK
ABMultiValueRef ref = ABMultiValueCreateMutable(type);
#else // GTM_IPHONE_SDK
ABMutableMultiValueRef ref = ABMultiValueCreateMutable();