Use headers defined in the C[++] standards:
[fw/sdcc] / as / z80 / assym.c
index 1ef7cc7675e9fdee89a542ec5a994e0c571c1f92..dadce441f877dc1f2c63538fbbd4f8355910222f 100644 (file)
 #include <stdio.h>
 #include <setjmp.h>
 #include <string.h>
+#include <stdlib.h>
+#if defined(__APPLE__) && defined(__MACH__)
+#include <sys/types.h>
+#include <sys/malloc.h>
+#else
 #include <malloc.h>
+#endif
 #include "asm.h"
 
 /*)Module      assym.c