summaryrefslogtreecommitdiffstats
path: root/lib
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
commit542e9707eff07c2cb3809f4e3090b46bcfc293a3 (patch)
treed67f6558a571f717de534dcf745b04fe6d5f7e6e /lib
parentfc748a8bdd5e174f6da6f7c780d391cdc9c0e7b8 (diff)
downloadruby-542e9707eff07c2cb3809f4e3090b46bcfc293a3.tar.gz
ruby-542e9707eff07c2cb3809f4e3090b46bcfc293a3.tar.xz
ruby-542e9707eff07c2cb3809f4e3090b46bcfc293a3.zip
* lib/mkmf.rb (create_header): split the line by tabs.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/mkmf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 815672b05..7635b4b7a 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