mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
Fix function body for variadic macro test.
AC_LANG_PROGRAM puts its second argument inside main() so we don't need to do it ourselves.
This commit is contained in:
parent
586f9bd2f5
commit
6d2564b94e
@ -26,7 +26,7 @@ AC_MSG_CHECKING([if $CC supports C99-style variadic macros])
|
|||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||||
int f(int a, int b, int c) { return a + b + c; }
|
int f(int a, int b, int c) { return a + b + c; }
|
||||||
#define F(a, ...) f(a, __VA_ARGS__)
|
#define F(a, ...) f(a, __VA_ARGS__)
|
||||||
]], [[int main(void) { return F(1, 2, -3); }]])],
|
]], [[return F(1, 2, -3);]])],
|
||||||
[ AC_MSG_RESULT([yes]) ],
|
[ AC_MSG_RESULT([yes]) ],
|
||||||
[ AC_MSG_ERROR([*** OpenSSH requires support for C99-style variadic macros]) ]
|
[ AC_MSG_ERROR([*** OpenSSH requires support for C99-style variadic macros]) ]
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user