stdio.h not needed
[fw/sdcc] / support / cpp / config.h
1 #if defined(_MSC_VER)
2
3 #include <stdlib.h>
4 #include "i386/i386.h"
5 #include "i386/xm-i386.h"
6 #define alloca(x) Safe_calloc(1,(x))
7 #define bcopy(s, d, n)  memcpy(d, s, n)
8 #define bcmp memcmp
9 #define bzero(p, l) memset(p, 0, l)
10 #define index strchr
11 #define rindex strrchr
12
13 #else
14
15 #include "i386/i386.h"
16 #include "i386/xm-linux.h"
17
18 #define alloca(x) Safe_calloc(1,(x))
19
20 #ifdef __BORLANDC__
21 #include <string.h>
22 #include <stdlib.h>
23 #define bcopy(s, d, n)  memcpy(d, s, n)
24 #define bcmp memcmp
25 #define bzero(p, l) memset(p, 0, l)
26 #define index strchr
27 #define rindex strrchr
28 #endif
29
30 #endif  // _MSC_VER