Kaydet (Commit) 3f13e484 authored tarafından Guido van Rossum's avatar Guido van Rossum

More thorough test for working <stdarg.h>.

üst 6eed9065
...@@ -376,8 +376,15 @@ works=no ...@@ -376,8 +376,15 @@ works=no
AC_MSG_CHECKING(for variable length prototypes and stdarg.h) AC_MSG_CHECKING(for variable length prototypes and stdarg.h)
AC_TRY_COMPILE([ AC_TRY_COMPILE([
#include <stdarg.h> #include <stdarg.h>
int foo(int x, ...) { return 0; } int foo(int x, ...) {
], [return foo(10, 11, 12);], va_list va;
va_start(va, x);
va_arg(va, int);
va_arg(va, char *);
va_arg(va, double);
return 0;
}
], [return foo(10, "", 3.14);],
AC_DEFINE(HAVE_STDARG_PROTOTYPES) works=yes) AC_DEFINE(HAVE_STDARG_PROTOTYPES) works=yes)
AC_MSG_RESULT($works) AC_MSG_RESULT($works)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment