adjust for mach os-x support
[fw/sdcc] / support / cpp2 / system.h
index 9e89c0615e4c83ea97a3195fd54271f2bbdab831..ff0473d2204914a795365b95a616e846959032ba 100644 (file)
@@ -307,9 +307,13 @@ extern void abort PARAMS ((void));
 
 /* 1 if we have C99 designated initializers.  */
 #if !defined(HAVE_DESIGNATED_INITIALIZERS)
+#if defined(__APPLE__) && (__MACH__)
+#define HAVE_DESIGNATED_INITIALIZERS 0
+#else
 #define HAVE_DESIGNATED_INITIALIZERS \
   ((GCC_VERSION >= 2007) || (__STDC_VERSION__ >= 199901L))
 #endif
+#endif
 
 #if HAVE_SYS_STAT_H
 # include <sys/stat.h>