aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
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