diff options
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -673,8 +673,7 @@ rb_io_wait_writable(int f) } } -/* xxx: better way to determine the newline of the platform? */ -#if defined(RUBY_TEST_CRLF_ENVIRONMENT) || defined(O_BINARY) && O_BINARY != 0 +#if defined(RUBY_TEST_CRLF_ENVIRONMENT) || defined(_WIN32) /* Windows */ # define NEED_NEWLINE_DECODER(fptr) (!(fptr->mode & FMODE_BINMODE)) # define NEED_NEWLINE_ENCODER(fptr) (!(fptr->mode & FMODE_BINMODE)) |