summaryrefslogtreecommitdiffstats
path: root/lib/mkmf.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-12 11:31:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-12 11:31:52 +0000
commit735f2b7194371c32a4cdca617e3b347247f05af3 (patch)
treed7e27f5d860334b2c7f25878c4467b37559309e8 /lib/mkmf.rb
parent4c96cae292c6bbe9353a1c87411debd5e1b43969 (diff)
downloadruby-735f2b7194371c32a4cdca617e3b347247f05af3.tar.gz
ruby-735f2b7194371c32a4cdca617e3b347247f05af3.tar.xz
ruby-735f2b7194371c32a4cdca617e3b347247f05af3.zip
* lib/mkmf.rb (create_tmpsrc): cpp32 of Borland C++ ignores #error
directives in DOS line-ending files at all. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r--lib/mkmf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 644831445..45fc556ec 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -211,7 +211,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