summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-17 06:44:28 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-17 06:44:28 +0000
commitd9abe0513d913b1eb6e149ad9f610a694385e226 (patch)
treea4841882d0c7df6889c3559522ee2c0b6037b716 /io.c
parentcfa3a72cc260edfc307d0abb405a70093a6c3127 (diff)
merge revision(s) 24751:
* io.c (rb_io_binmode): check if closed regardless platforms. [ruby-core:25363] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@25812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/io.c b/io.c
index a47bfc5170..b295d102ad 100644
--- a/io.c
+++ b/io.c
@@ -2696,11 +2696,11 @@ VALUE
rb_io_binmode(io)
VALUE io;
{
-#if defined(_WIN32) || defined(DJGPP) || defined(__CYGWIN__) || defined(__human68k__) || defined(__EMX__)
rb_io_t *fptr;
GetOpenFile(io, fptr);
-#ifdef __human68k__
+#if (defined(O_BINARY) && O_BINARY) || (defined(_IOBIN) && _IOBIN)
+#if (defined(_IOBIN) && _IOBIN) /* __human68k__ */
if (fptr->f)
fmode(fptr->f, _IOBIN);
if (fptr->f2)