* fixed GCC 4.4.0 mingw compilation:
[fw/sdcc] / support / cpp / config.h
index 91bf22f71d0a1d8434e490f617b0e83bd1a04853..c6bbaa20c63a0e08557a379c145994b9b6024c9d 100644 (file)
@@ -1,16 +1,11 @@
-#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
-
-
+#include "auto-host.h"
+/* Provide three core typedefs used by everything, if we are compiling
+   GCC.  These used to be found in rtl.h and tree.h, but this is no
+   longer practical.  Providing these here rather that system.h allows
+   the typedefs to be used everywhere within GCC. */
+struct rtx_def;
+typedef struct rtx_def *rtx;
+struct rtvec_def;
+typedef struct rtvec_def *rtvec;
+union tree_node;
+typedef union tree_node *tree;