projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adjust for mach os-x support
[fw/sdcc]
/
support
/
cpp2
/
system.h
diff --git
a/support/cpp2/system.h
b/support/cpp2/system.h
index 9e89c0615e4c83ea97a3195fd54271f2bbdab831..ff0473d2204914a795365b95a616e846959032ba 100644
(file)
--- a/
support/cpp2/system.h
+++ b/
support/cpp2/system.h
@@
-307,9
+307,13
@@
extern void abort PARAMS ((void));
/* 1 if we have C99 designated initializers. */
#if !defined(HAVE_DESIGNATED_INITIALIZERS)
/* 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
#define HAVE_DESIGNATED_INITIALIZERS \
((GCC_VERSION >= 2007) || (__STDC_VERSION__ >= 199901L))
#endif
+#endif
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#if HAVE_SYS_STAT_H
# include <sys/stat.h>