diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-29 02:44:37 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-29 02:44:37 +0000 |
| commit | 90047c0be985c9c57c29128880e49795e64aede3 (patch) | |
| tree | 6fa60288da5741e0c1b3c695f309250d8414b31f /lib | |
| parent | c336aef3a4833ab905d9abe9ccea9f731a4fa0cc (diff) | |
| download | ruby-90047c0be985c9c57c29128880e49795e64aede3.tar.gz ruby-90047c0be985c9c57c29128880e49795e64aede3.tar.xz ruby-90047c0be985c9c57c29128880e49795e64aede3.zip | |
* lib/mkmf.rb (try_func): revert fallback checking undeclared function.
fixed: [ruby-core:08949]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/mkmf.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index d68eb8b06..a64729576 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -410,13 +410,18 @@ end def try_func(func, libs, headers = nil, &b) headers = cpp_include(headers) - try_link(<<"SRC", libs, &b) or macro_defined?(func, COMMON_HEADERS+headers, &b) + try_link(<<"SRC", libs, &b) or try_link(<<"SRC", libs, &b) #{COMMON_HEADERS} #{headers} /*top*/ int main() { return 0; } int t() { void ((*volatile p)()); p = (void ((*)()))#{func}; return 0; } SRC +#{headers} +/*top*/ +int main() { return 0; } +int t() { #{func}(); return 0; } +SRC end def try_var(var, headers = nil, &b) |
