diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-12 11:31:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-12 11:31:52 +0000 |
commit | 8bc9475793bd3218da4cd58570d6d9a6e7fd3548 (patch) | |
tree | 061c9a43d6bc36743d122ca44fe90ff1189adc3f /lib | |
parent | 263769b65b64998ae972dcea86cfa795804e5131 (diff) | |
download | ruby-8bc9475793bd3218da4cd58570d6d9a6e7fd3548.tar.gz |
* lib/mkmf.rb (create_tmpsrc): cpp32 of Borland C++ ignores #error
directives in DOS line-ending files at all.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mkmf.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index ece0c3a602..f9fe4608a3 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -216,7 +216,7 @@ end def create_tmpsrc(src) src = yield(src) if block_given? src = src.sub(/[^\n]\z/, "\\&\n") - open(CONFTEST_C, "w") do |cfile| + open(CONFTEST_C, "wb") do |cfile| cfile.print src end src |