aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorgrischka <grischka>2009-05-11 18:53:52 +0200
committergrischka <grischka>2009-05-11 18:53:52 +0200
commitca4b4a52add51e44a47d7ed1f12e51dd3ee3cd69 (patch)
treedb63e4e67c03b2916fd3091aba06a4a7c2d77461 /tcc.h
parent03c787d6ce8dbd6a0898995c47309f33d7d3490e (diff)
downloadtinycc-ca4b4a52add51e44a47d7ed1f12e51dd3ee3cd69.tar.gz
tinycc-ca4b4a52add51e44a47d7ed1f12e51dd3ee3cd69.tar.bz2
fix build with msvc
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/tcc.h b/tcc.h
index 7ee5282..be9c4cc 100644
--- a/tcc.h
+++ b/tcc.h
@@ -42,9 +42,10 @@
#ifdef _WIN32
#include <windows.h>
#include <sys/timeb.h>
-#ifdef _MSC_VER
+#include <io.h> /* open, close etc. */
+#include <direct.h> /* getcwd */
#define inline __inline
-#endif
+#define inp next_inp
#endif
#ifndef _WIN32