ruby-changes:18594
From: kosaki <ko1@a...>
Date: Fri, 21 Jan 2011 00:47:09 +0900 (JST)
Subject: [ruby-changes:18594] Ruby:r30618 (trunk): * configure.in: Fix rb_cv_va_args_macro was broken. We are using
kosaki 2011-01-21 00:38:44 +0900 (Fri, 21 Jan 2011) New Revision: 30618 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30618 Log: * configure.in: Fix rb_cv_va_args_macro was broken. We are using -Werror=implicit-function-declaration compile option. therefore we need a function declaration explicitly. Modified files: trunk/ChangeLog trunk/configure.in Index: configure.in =================================================================== --- configure.in (revision 30617) +++ configure.in (revision 30618) @@ -760,8 +760,10 @@ fi AC_CACHE_CHECK(for variable length macro, rb_cv_va_args_macro, - [AC_TRY_COMPILE([@%:@define FOO(a, ...) foo(a, @%:@@%:@__VA_ARGS__)], - [FOO(1);FOO(1,2);FOO(1,2,3);], + [AC_TRY_COMPILE([ +int foo(int x, ...); +@%:@define FOO(a, ...) foo(a, @%:@@%:@__VA_ARGS__) +], [FOO(1);FOO(1,2);FOO(1,2,3);], rb_cv_va_args_macro=yes, rb_cv_va_args_macro=no)]) if test "$rb_cv_va_args_macro" = yes; then Index: ChangeLog =================================================================== --- ChangeLog (revision 30617) +++ ChangeLog (revision 30618) @@ -1,3 +1,9 @@ +Thu Jan 20 23:44:00 2011 KOSAKI Motohiro <kosaki.motohiro@g...> + + * configure.in: Fix rb_cv_va_args_macro was broken. We are using + -Werror=implicit-function-declaration compile option. therefore + we need a function declaration explicitly. + Thu Jan 20 23:58:02 2011 Tanaka Akira <akr@f...> * node.h: parenthesize macro arguments. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/