* src/SDCCpeeph.c (peepHole): Fixed all leaks. Added trace support for freeing...
[fw/sdcc] / support / cpp2 / system.h
index 8486185ee8fd67819602b4c4441c0e8748b127ba..ff0473d2204914a795365b95a616e846959032ba 100644 (file)
@@ -61,7 +61,11 @@ Boston, MA 02111-1307, USA.  */
 /* There are an extraordinary number of issues with <ctype.h>.
    The last straw is that it varies with the locale.  Use libiberty's
    replacement instead.  */
+#if defined(__APPLE__) && defined(__MACH__)
+#include <libiberty/safe-ctype.h>
+#else
 #include <safe-ctype.h>
+#endif
 
 /* Define a default escape character; it's different for EBCDIC.  */
 #ifndef TARGET_ESC
@@ -303,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>