diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-20 02:44:16 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-20 02:44:16 +0000 |
commit | a664459ae66bd4ee0a50517804f6df7341f7cdae (patch) | |
tree | 08d99862c92dd62136abdfcc3ca11447407eb840 /lib/mkmf.rb | |
parent | 9d468b9ad252c6e47d8d3726e1c154a867816388 (diff) |
* lib/mkmf.rb: fixed the bug of handling COMMON_MACROS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mkmf.rb')
-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 1e8033b919..0367860458 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -1495,8 +1495,7 @@ EXPORT_PREFIX = config_string('EXPORT_PREFIX') {|s| s.strip} hdr = [] config_string('COMMON_MACROS') do |s| Shellwords.shellwords(s).each do |s| - /(.*?)(?:=(.*))/ =~ s - hdr << "#define #$1 #$2" + hdr << "#define " + w.split(/=/, 2).join(" ") end end config_string('COMMON_HEADERS') do |s| |