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 | c698789ccf4c14bfb937acfcaec808fb8769ba13 (patch) | |
| tree | 13249671894390a4ea996d1dfabff9ba005a1ce8 | |
| parent | 0a14b40e1e6af72452bd0161da751d84806971a6 (diff) | |
| download | ruby-c698789ccf4c14bfb937acfcaec808fb8769ba13.tar.gz ruby-c698789ccf4c14bfb937acfcaec808fb8769ba13.tar.xz ruby-c698789ccf4c14bfb937acfcaec808fb8769ba13.zip | |
* io.c (rb_io_binmode_m): removed C99ism.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -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); |
