aboutsummaryrefslogtreecommitdiff
path: root/tcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'tcc.c')
-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>