From ce2989b03b0c13194980c7acab50d8cc8f000ad7 Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 25 Aug 2008 16:49:31 +0000 Subject: * io.c: test _WIN32 for CRLF platform. (cygwin defines O_BINARY.) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'io.c') diff --git a/io.c b/io.c index 2fba88e08..d1d350e10 100644 --- a/io.c +++ b/io.c @@ -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)) -- cgit