diff options
author | Mike Pall <mike> | 2010-11-16 14:06:59 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2010-11-16 15:03:40 +0100 |
commit | 24baf7795574ca40be2c2be8da8cd483551a546a (patch) | |
tree | e3e2629947dc8c8bd2d25d7a6c9ab7db54f814a1 /src/luajit.c | |
parent | 1de05d1147a6fe69b55111d605eccdedc8c6c993 (diff) | |
download | luajit-24baf7795574ca40be2c2be8da8cd483551a546a.tar.gz luajit-24baf7795574ca40be2c2be8da8cd483551a546a.tar.bz2 luajit-24baf7795574ca40be2c2be8da8cd483551a546a.zip |
Cleanup architecture, ABI and OS definitions.
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)) |