* 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
Родитель a072f94fbe
Коммит a3c87a7859
2 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -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
Просмотреть файл

@ -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);