diff options
author | H_Konishi <H_Konishi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-08-20 13:03:22 +0000 |
---|---|---|
committer | H_Konishi <H_Konishi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-08-20 13:03:22 +0000 |
commit | 5738d629122260c6ba0f99ac4cb9dfa486c17b7b (patch) | |
tree | 84e64ccc32a5f876e569e8d40cb050c49effd7b5 /win32/win32.c | |
parent | 514aa4d97632f85d5dbd589d6bb37a49e8d1dbc4 (diff) | |
download | ruby-5738d629122260c6ba0f99ac4cb9dfa486c17b7b.tar.gz |
* replace of check EPIPE error(in getc()) rutine on bcc32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.c')
-rw-r--r-- | win32/win32.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c index 94e7c456ad..d10b68fbef 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -2761,6 +2761,12 @@ int rb_w32_getc(FILE* stream) } else { c = _filbuf(stream); +#ifdef __BORLANDC__ + if( ( c == EOF )&&( errno == EPIPE ) ) + { + clearerr(stream); + } +#endif rb_trap_immediate = trap_immediate; catch_interrupt(); } |