diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-15 08:05:10 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-15 08:05:10 +0000 |
commit | 8dac052af443ca14fac6d343b22113fb1d19cd1b (patch) | |
tree | 619c88c1d02f29641f374d2ec45b75a0e43a2503 /win32/win32.h | |
parent | db82a3315ba7ca71d41ee108f865f9e43443eb18 (diff) |
* win32/win32.[ch] (rb_w32_isatty): new function to replace MSVCRT's
isatty because it never sets errno. (backported from CVS HEAD)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.h')
-rw-r--r-- | win32/win32.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/win32/win32.h b/win32/win32.h index d7222fc1b1..a7995a083b 100644 --- a/win32/win32.h +++ b/win32/win32.h @@ -125,6 +125,8 @@ extern "C++" { #define stat(path,st) rb_w32_stat(path,st) #undef execv #define execv(path,argv) do_aspawn(P_OVERLAY,path,argv) +#undef isatty +#define isatty(h) rb_w32_isatty(h) #ifdef __MINGW32__ struct timezone { @@ -181,6 +183,7 @@ extern int do_spawn(int, char *); extern int do_aspawn(int, char *, char **); extern int kill(int, int); extern pid_t rb_w32_getpid(void); +extern int rb_w32_isatty(int); #ifdef __BORLANDC__ extern FILE *rb_w32_fopen(const char *, const char *); |