mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
263769b65b
commit
8bc9475793
2 changed files with 6 additions and 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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue