]> err.no Git - sope/blobdiff - sope-core/NGStreams/NGTextStream.m
added a 10.5 hack
[sope] / sope-core / NGStreams / NGTextStream.m
index 2bfa46220c707776e7ccb3f7b64dd60ffa818266..755c90e16fedc097c0c482cd37b3c1090513f7f4 100644 (file)
 
   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;