зеркало из https://github.com/github/ruby.git
* 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:
Родитель
a072f94fbe
Коммит
a3c87a7859
|
@ -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>
|
Sun Dec 23 10:23:23 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||||
|
|
||||||
* transcode_data_one_byte.c: Better (and more honest) optimization.
|
* transcode_data_one_byte.c: Better (and more honest) optimization.
|
||||||
|
|
6
io.c
6
io.c
|
@ -2908,11 +2908,13 @@ rb_io_binmode(VALUE io)
|
||||||
static VALUE
|
static VALUE
|
||||||
rb_io_binmode_m(VALUE io)
|
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);
|
rb_io_binmode(io);
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(DJGPP) || defined(__CYGWIN__) || defined(__human68k__) || defined(__EMX__)
|
#if defined(_WIN32) || defined(DJGPP) || defined(__CYGWIN__) || defined(__human68k__) || defined(__EMX__)
|
||||||
VALUE write_io;
|
|
||||||
|
|
||||||
write_io = GetWriteIO(io);
|
write_io = GetWriteIO(io);
|
||||||
if (write_io != io)
|
if (write_io != io)
|
||||||
rb_io_binmode(write_io);
|
rb_io_binmode(write_io);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче