aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrischka <grischka>2009-02-11 16:42:04 +0100
committergrischka <grischka>2009-04-18 15:07:08 +0200
commitb41fc95566f5dbc7f2ec5eec7853ab85d6c7b5f7 (patch)
tree11f423ecabc3dd9434a8d56e553fadbf123dca9c
parent00f093276030ed87c3992a5bde22673f691b08c9 (diff)
downloadtinycc-b41fc95566f5dbc7f2ec5eec7853ab85d6c7b5f7.tar.gz
tinycc-b41fc95566f5dbc7f2ec5eec7853ab85d6c7b5f7.tar.bz2
win32: fix for VC8Express compiler
-rw-r--r--tcc.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/tcc.c b/tcc.c
index 0569f08..0b731f3 100644
--- a/tcc.c
+++ b/tcc.c
@@ -33,16 +33,21 @@
#include <string.h>
#include <errno.h>
#include <math.h>
-#include <unistd.h>
#include <signal.h>
#include <fcntl.h>
#include <setjmp.h>
#include <time.h>
+
#ifdef _WIN32
-#include <sys/timeb.h>
#include <windows.h>
+#include <sys/timeb.h>
+#ifdef _MSC_VER
+#define inline __inline
#endif
+#endif
+
#ifndef _WIN32
+#include <unistd.h>
#include <sys/time.h>
#include <sys/ucontext.h>
#include <sys/mman.h>