diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-14 02:54:08 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-14 02:54:08 +0000 |
commit | 3cce5965da45677a6f219ebea422425ade2d9d3b (patch) | |
tree | 713e90d159b3041c370466ed7995ea2ce07d1b08 /lib/mkmf.rb | |
parent | a2ccbc14d9b56f44707fdcfb7aa928330ac5fdd7 (diff) | |
download | bundler-3cce5965da45677a6f219ebea422425ade2d9d3b.tar.gz |
* lib/mkmf.rb (try_var): should fail for functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r-- | lib/mkmf.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 9f450ad6e1..985c70e4a0 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -478,7 +478,7 @@ def try_var(var, headers = nil, &b) #{headers} /*top*/ int main() { return 0; } -int t() { const volatile void *volatile p; p = (void *)&#{var}; return 0; } +int t() { const volatile void *volatile p; p = &(&#{var})[0]; return 0; } SRC end |