make cpp -> bin/sdcppold
[fw/sdcc] / support / cpp / config.h
index fefe22e74f04cd016c0958fa0c28e2c2f97715ed..46d7d467fc64fe8262774efc92a966465e7fcca8 100644 (file)
@@ -1,9 +1,9 @@
 #if defined(_MSC_VER)
 
 #include <stdlib.h>
-#include "i386/i386.h" 
+#include "i386/i386.h"
 #include "i386/xm-i386.h"
-#define alloca Safe_calloc
+#define alloca(x) Safe_calloc(1,(x))
 #define bcopy(s, d, n)  memcpy(d, s, n)
 #define bcmp memcmp
 #define bzero(p, l) memset(p, 0, l)
 
 #else
 
-#include "i386/i386.h" 
-#include "i386/xm-linux.h"  
+#include "i386/i386.h"
+#include "i386/xm-linux.h"
 
-#ifndef __BORLANDC__
-#define alloca Safe_calloc
-#else
+#define alloca(x) Safe_calloc(1,(x))
+
+#ifdef __BORLANDC__
 #include <string.h>
 #include <stdlib.h>
 #define bcopy(s, d, n)  memcpy(d, s, n)
@@ -27,4 +27,4 @@
 #define rindex strrchr
 #endif
 
-#endif // _MSC_VER
\ No newline at end of file
+#endif  // _MSC_VER