diff options
author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-14 09:58:13 +0000 |
---|---|---|
committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-14 09:58:13 +0000 |
commit | 84f260b9bd69089ce52957554cda8e341c19d9b2 (patch) | |
tree | f532d5042920af3230b66d20c05ff5548ae3b866 /win32 | |
parent | aff87533d8cbc1fae1a305b0ac015036638624c3 (diff) | |
download | ruby-84f260b9bd69089ce52957554cda8e341c19d9b2.tar.gz ruby-84f260b9bd69089ce52957554cda8e341c19d9b2.tar.xz ruby-84f260b9bd69089ce52957554cda8e341c19d9b2.zip |
reordered just for diffing.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/win32/win32.c b/win32/win32.c index 2a1fe17dc..588aecb1f 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -3621,22 +3621,6 @@ rb_w32_snprintf(char *buf, size_t size, const char *format, ...) return ret; } -#if !defined(__BORLANDC__) && !defined(_WIN32_WCE) -int -rb_w32_isatty(int fd) -{ - if (!(_osfile(fd) & FOPEN)) { - errno = EBADF; - return 0; - } - if (!(_osfile(fd) & FDEV)) { - errno = ENOTTY; - return 0; - } - return 1; -} -#endif - int rb_w32_mkdir(const char *path, int mode) { @@ -3695,6 +3679,22 @@ rb_w32_unlink(const char *path) return ret; } +#if !defined(__BORLANDC__) && !defined(_WIN32_WCE) +int +rb_w32_isatty(int fd) +{ + if (!(_osfile(fd) & FOPEN)) { + errno = EBADF; + return 0; + } + if (!(_osfile(fd) & FDEV)) { + errno = ENOTTY; + return 0; + } + return 1; +} +#endif + // // Fix bcc32's stdio bug // |