Commits

Jens Alfke committed ca570bc

Fix iOS compile errors from last commit.

Comments (0)

Files changed (2)

     _Logv(kWarningPrefix,msg,args);
     va_end(args);
 
+#if TARGET_OS_IPHONE && !TARGET_IPHONE_SIMULATOR
     // If running in Xcode, drop into the debugger on a warning.
     // You must check the "Run > Stop On Debugger()/DebugStr()" menu item to enable this.
     Debugger();
+#endif
 }
 
 
             result = [NSString stringWithCString: name encoding: NSMacOSRomanStringEncoding];
         else {
 #if MYERRORUTILS_USE_SECURITY_API
-            result = (id) SecCopyErrorMessageString(code,NULL);
+            result = (id) SecCopyErrorMessageString((OSStatus)code,NULL);
             if (result) {
                 [NSMakeCollectable(result) autorelease];
                 if ([result hasPrefix: @"OSStatus "])