diff mc-code-ia32.c @ 182:e1e9ec8c96a7

some fix
author kono
date Sun, 30 Nov 2003 21:15:24 +0900
parents 3b33c7daae95
children 1d80ad165831
line wrap: on
line diff
--- a/mc-code-ia32.c	Sun Nov 30 18:38:43 2003 +0900
+++ b/mc-code-ia32.c	Sun Nov 30 21:15:24 2003 +0900
@@ -8,6 +8,7 @@
 
 char *l_include_path[] = {
     "/usr/include/",
+    "/usr/include/linux/",
     0
 };
 
@@ -157,6 +158,11 @@
 code_init(void)
 {
     macro_define("__i386__ 1\n");
+    macro_define("__LITTLE_ENDIAN__ 1\n");
+    macro_define("__STDC__ 1\n");
+    macro_define("size_t int\n");
+    macro_define("__externsion__\n");
+    macro_define("__flexarr\n");
 
     arg_offset = 8;
     func_disp_offset = -12;
@@ -1403,6 +1409,7 @@
 void
 enter1()
 {
+    text_mode();
     func_disp_label=fwdlabel();
     printf("\tlea _%d(%%ebp),%%esp\n",func_disp_label); 
     /* if(disp) printf("\tsubl $%d,%%esp\n",-disp); */