From 3cce5965da45677a6f219ebea422425ade2d9d3b Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 14 Dec 2007 02:54:08 +0000 Subject: * 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 --- lib/mkmf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/mkmf.rb') 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 -- cgit v1.2.1