diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-20 02:33:49 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-20 02:33:49 +0000 |
commit | 03f19e27ed9dc0b0110dce0108626d414e00fca2 (patch) | |
tree | 092a0900f6de0d4deaaea1838da687d4c8c152d2 /lib | |
parent | 40fc1a802516f5cd51d9bf741528bc06d3330c5f (diff) | |
download | ruby-03f19e27ed9dc0b0110dce0108626d414e00fca2.tar.gz |
* lib/mkmf.rb: fixed the bug of handling COMMON_MACROS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mkmf.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 45900fe0f7..d24a407f9f 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -1511,8 +1511,7 @@ EXPORT_PREFIX = config_string('EXPORT_PREFIX') {|s| s.strip} hdr = [] config_string('COMMON_MACROS') do |s| Shellwords.shellwords(s).each do |w| - /(.*?)(?:=(.*))/ =~ w - hdr << "#define #$1 #$2" + hdr << "#define " + w.split(/=/, 2).join(" ") end end config_string('COMMON_HEADERS') do |s| |