From c7b5c0489b472b92f297e7ff64a10ee03523f570 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 17 Aug 2003 14:40:00 +0000 Subject: * ext/openssl/extconf.rb (HAVE_VA_ARGS_MACRO): need to compile. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/openssl/extconf.rb | 2 +- ext/tcltklib/stubs.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb index 978f9dbb69..59b222ac91 100644 --- a/ext/openssl/extconf.rb +++ b/ext/openssl/extconf.rb @@ -79,7 +79,7 @@ have_func("BN_mod_sub") have_func("BN_rand_range") have_func("BN_pseudo_rand_range") have_func("CONF_get1_default_config_file") -if try_cpp("#define FOO(a, ...) foo(a, ##__VA_ARGS__)\n int x(){FOO(1);FOO(1,2);FOO(1,2,3);}\n") +if try_compile("#define FOO(a, ...) foo(a, ##__VA_ARGS__)\n int x(){FOO(1);FOO(1,2);FOO(1,2,3);}\n") $defs.push("-DHAVE_VA_ARGS_MACRO") end have_header("openssl/ocsp.h") diff --git a/ext/tcltklib/stubs.c b/ext/tcltklib/stubs.c index f394d6fc74..a1dd08f4a3 100644 --- a/ext/tcltklib/stubs.c +++ b/ext/tcltklib/stubs.c @@ -1,3 +1,5 @@ +int ruby_tcltk_stubs(); + #if defined USE_TCL_STUBS && defined USE_TK_STUBS #include #include -- cgit v1.2.3