* configure, configure.in, sdcc_vc_in.h, sdcconf.h,
[fw/sdcc] / support / Util / NewAlloc.c
index 264311bb1e6af9f599777aee44d4d6f89234c9f8..86e78e430c798072a34b23fc7e013550c875c249 100644 (file)
@@ -30,9 +30,11 @@ functions.
 #include <stdio.h>
 #if defined(__APPLE__) && defined(__MACH__)
 #include <sys/malloc.h>
-#elseif !defined(__FreeBSD__)
+#else
+#ifdef HAVE_MALLOC_H
 #include <malloc.h>
 #endif
+#endif
 #include <stdlib.h>
 #include <string.h>
 #include <memory.h>
@@ -48,7 +50,7 @@ functions.
    allocated with malloc() then the program will segfault.  Might as
    well drop it and let the garbase collector take care of things.
 */
-#define FREE(_a)       
+#define FREE(_a)
 
 #else