summaryrefslogtreecommitdiff
path: root/lib/mkmf.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-06 08:13:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-06 08:13:47 +0000
commit32acedd2867d9577b824d0ab255e533d4ff14ea9 (patch)
treed67f6558a571f717de534dcf745b04fe6d5f7e6e /lib/mkmf.rb
parent420c0430899ee0fa49f0fa84112a8eb025373cee (diff)
* lib/mkmf.rb (create_header): split the line by tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25673 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 815672b053..7635b4b7a3 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -1264,7 +1264,7 @@ def create_header(header = "extconf.h")
for line in $defs
case line
when /^-D([^=]+)(?:=(.*))?/
- hdr << "#define #$1 #{$2 ? Shellwords.shellwords($2)[0] : 1}\n"
+ hdr << "#define #$1 #{$2 ? Shellwords.shellwords($2)[0].gsub(/(?=\t+)/, "\\\n") : 1}\n"
when /^-U(.*)/
hdr << "#undef #$1\n"
end