summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-23 02:01:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-23 02:01:34 +0000
commita3c87a785996e6c735522cb750d805be887cba98 (patch)
tree13249671894390a4ea996d1dfabff9ba005a1ce8 /io.c
parenta072f94fbe5e0a5635cd7f82ca0d39e1abf7bacd (diff)
* 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
Diffstat (limited to 'io.c')
-rw-r--r--io.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/io.c b/io.c
index 18faa42826..aed61fb670 100644
--- a/io.c
+++ b/io.c
@@ -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);