]> git.gag.com Git - fw/sdcc/blobdiff - support/cpp/config.h
Get compiling with Vorland C++ for Windows
[fw/sdcc] / support / cpp / config.h
index c1bbb06773d753f80019f51a5708f64dcc64e374..91bf22f71d0a1d8434e490f617b0e83bd1a04853 100644 (file)
@@ -1,4 +1,16 @@
 #include "i386/i386.h" 
 #include "i386/xm-linux.h"  
 
+#ifndef __BORLANDC__
 #define alloca malloc
+#else
+#include <string.h>
+#include <stdlib.h>
+#define bcopy(s, d, n)  memcpy(d, s, n)
+#define bcmp memcmp
+#define bzero(p, l) memset(p, 0, l)
+#define index strchr
+#define rindex strrchr
+#endif
+
+