diff options
Diffstat (limited to 'src/luajit.c')
-rw-r--r-- | src/luajit.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/luajit.c b/src/luajit.c index e8024479..2e85f01d 100644 --- a/src/luajit.c +++ b/src/luajit.c | |||
@@ -18,10 +18,12 @@ | |||
18 | #include "lualib.h" | 18 | #include "lualib.h" |
19 | #include "luajit.h" | 19 | #include "luajit.h" |
20 | 20 | ||
21 | #if defined(LUA_USE_POSIX) | 21 | #include "lj_arch.h" |
22 | |||
23 | #if LJ_TARGET_POSIX | ||
22 | #include <unistd.h> | 24 | #include <unistd.h> |
23 | #define lua_stdin_is_tty() isatty(0) | 25 | #define lua_stdin_is_tty() isatty(0) |
24 | #elif defined(LUA_USE_WIN) | 26 | #elif LJ_TARGET_WINDOWS |
25 | #include <io.h> | 27 | #include <io.h> |
26 | #ifdef __BORLANDC__ | 28 | #ifdef __BORLANDC__ |
27 | #define lua_stdin_is_tty() isatty(_fileno(stdin)) | 29 | #define lua_stdin_is_tty() isatty(_fileno(stdin)) |