va_start(ap, _format);
+#if MAC_OS_X_VERSION_MAX_ALLOWED > 1050
+ /* As soon as we add an exception handler on Leopard compilation
+ * breaks. Probably some GCC bug.
+ */
+ res = [self writeFormat:_format arguments:ap];
+#else
NS_DURING {
res = [self writeFormat:_format arguments:ap];
}
[localException raise];
}
NS_ENDHANDLER;
+#endif
+
va_end(ap);
return res;