diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | io.c | 6 |
2 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Sun Dec 23 11:01:35 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * io.c (rb_io_binmode_m): removed C99ism. + Sun Dec 23 10:23:23 2007 Martin Duerst <duerst@it.aoyama.ac.jp> * transcode_data_one_byte.c: Better (and more honest) optimization. @@ -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); |