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:
parent
3c1b996a98
commit
c940b3939a
2 changed files with 10 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue