[Openvpn-devel] [PATCH 1/6] build: ax_varargs.m4: fixups
Signed-off-by: Alon Bar-Lev --- m4/ax_varargs.m4 | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/m4/ax_varargs.m4 b/m4/ax_varargs.m4 index 37cdebe..c295d21 100644 --- a/m4/ax_varargs.m4 +++ b/m4/ax_varargs.m4 @@ -12,11 +12,12 @@ AC_DEFUN([AX_CPP_VARARG_MACRO_GCC], [dnl [VAR], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( - , [[ #define macro(a, b...) func(a, b) int func(int a, int b, int c); -int test() { return macro(1, 2, 3); } + ]], + [[ +int i = macro(1, 2, 3); ]] )], [VAR=yes], @@ -50,11 +51,12 @@ AC_DEFUN([AX_CPP_VARARG_MACRO_ISO], [dnl [VAR], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( - , [[ #define macro(a, ...) func(a, __VA_ARGS__) int func(int a, int b, int c); -int test() { return macro(1, 2, 3); } + ]], + [[ +int i = macro(1, 2, 3); ]] )], [VAR=yes], -- 1.7.3.4
Re: [Openvpn-devel] [PATCH 1/6] build: ax_varargs.m4: fixups
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 24/03/12 08:58, Alon Bar-Lev wrote: > Signed-off-by: Alon Bar-Lev --- > m4/ax_varargs.m4 | 10 ++ 1 files changed, 6 insertions(+), 4 > deletions(-) > ACK! Applied to master branches on -testing and -stable trees. commit 4df219c764bf107d9d7fb49b417269b94cc536c4 Author: Alon Bar-Lev List-Post: openvpn-devel@lists.sourceforge.net Date: Sat Mar 24 09:58:33 2012 +0200 Signed-off-by: Alon Bar-Lev Acked-by: David Sommerseth Signed-off-by: David Sommerseth kind regards, David Sommerseth -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9wYr4ACgkQDC186MBRfrq79QCfejMJt+cMgLuvIKymPdW/gePJ ToEAniHwfwiqNaxVuaQflv4r2lRYGgz2 =B846 -END PGP SIGNATURE-