diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-23 02:01:34 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-23 02:01:34 +0000 |
commit | a3c87a785996e6c735522cb750d805be887cba98 (patch) | |
tree | 13249671894390a4ea996d1dfabff9ba005a1ce8 /io.c | |
parent | a072f94fbe5e0a5635cd7f82ca0d39e1abf7bacd (diff) | |
download | ruby-a3c87a785996e6c735522cb750d805be887cba98.tar.gz |
* io.c (rb_io_binmode_m): removed C99ism.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -2908,11 +2908,13 @@ rb_io_binmode(VALUE io) static VALUE rb_io_binmode_m(VALUE io) { - rb_io_binmode(io); - #if defined(_WIN32) || defined(DJGPP) || defined(__CYGWIN__) || defined(__human68k__) || defined(__EMX__) VALUE write_io; +#endif + rb_io_binmode(io); + +#if defined(_WIN32) || defined(DJGPP) || defined(__CYGWIN__) || defined(__human68k__) || defined(__EMX__) write_io = GetWriteIO(io); if (write_io != io) rb_io_binmode(write_io); |