diff options
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 94e7c456a..d10b68fbe 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(); } |