1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2007-12-23 02:01:34 +00:00
parent a072f94fbe
commit a3c87a7859
2 changed files with 8 additions and 2 deletions

View file

@ -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.

6
io.c
View file

@ -2908,11 +2908,13 @@ rb_io_binmode(VALUE io)
static VALUE
rb_io_binmode_m(VALUE 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__)
VALUE write_io;
write_io = GetWriteIO(io);
if (write_io != io)
rb_io_binmode(write_io);