mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 17:14:01 +02:00
* lib/mkmf.rb (try_func): revert fallback checking undeclared function.
fixed: [ruby-core:08949] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c643593b20
commit
d846e10d73
2 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Sep 29 11:43:40 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/mkmf.rb (try_func): revert fallback checking undeclared function.
|
||||
fixed: [ruby-core:08949]
|
||||
|
||||
Fri Sep 29 10:59:16 2006 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||
|
||||
* lib/jcode.rb: need to initialize SUCC['n'].
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue