diff -r 47d10ac2d04e -r 206903ba35a5 MYErrorUtils.m --- a/MYErrorUtils.m Sun Apr 12 22:00:36 2009 -0700 +++ b/MYErrorUtils.m Tue May 05 11:09:06 2009 -0700 @@ -10,7 +10,10 @@ #import "Test.h" #import "CollectionUtils.h" #import + +#if USE_SECURITY_API #import +#endif NSString* const MYErrorDomain = @"MYErrorDomain"; @@ -134,12 +137,14 @@ if (name && *name) result = [NSString stringWithCString: name encoding: NSMacOSRomanStringEncoding]; else { +#if USE_SECURITY_API result = (id) SecCopyErrorMessageString(code,NULL); if (result) { [(id)CFMakeCollectable(result) autorelease]; if ([result hasPrefix: @"OSStatus "]) result = nil; // just a generic message } +#endif } } #endif