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 | 689b7d159905e116f2148736f5d080d839a10827 (patch) | |
| tree | 061c9a43d6bc36743d122ca44fe90ff1189adc3f | |
| parent | 5d9265b88297bcdcb5ee2315d53bb0bf1d428906 (diff) | |
| download | ruby-689b7d159905e116f2148736f5d080d839a10827.tar.gz ruby-689b7d159905e116f2148736f5d080d839a10827.tar.xz ruby-689b7d159905e116f2148736f5d080d839a10827.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/trunk@5679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | lib/mkmf.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Thu Feb 12 20:31:43 2004 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * lib/mkmf.rb (create_tmpsrc): cpp32 of Borland C++ ignores #error + directives in DOS line-ending files at all. + Thu Feb 12 15:23:20 2004 Nobuyoshi Nakada <nobu@ruby-lang.org> * parse.y (rparen): ignore preceding newlines to right parentheses. diff --git a/lib/mkmf.rb b/lib/mkmf.rb index ece0c3a60..f9fe4608a 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 |
