1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kosaki 2011-01-20 15:38:44 +00:00
parent 3c1b996a98
commit c940b3939a
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,9 @@
Thu Jan 20 23:44:00 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* 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@fsij.org>
* node.h: parenthesize macro arguments.

View file

@ -760,8 +760,10 @@ if test "$rb_cv_stdarg" = yes; then
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