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 | 92f3485cdc50f59da38c36865c14ef6537ce1616 (patch) | |
tree | 713e90d159b3041c370466ed7995ea2ce07d1b08 /lib | |
parent | ebc9b4908106d4ee05f626b95e815f6a841bf883 (diff) | |
download | ruby-92f3485cdc50f59da38c36865c14ef6537ce1616.tar.gz ruby-92f3485cdc50f59da38c36865c14ef6537ce1616.tar.xz ruby-92f3485cdc50f59da38c36865c14ef6537ce1616.zip |
* lib/mkmf.rb (try_var): should fail for functions.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-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 9f450ad6e..985c70e4a 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 |