diff options
author | Kevin Ryde <user42@zip.com.au> | 2001-12-17 23:26:23 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2001-12-17 23:26:23 +0100 |
commit | 20d6753bacc14879fb51a3b615932c694c82c28e (patch) | |
tree | e1e2373ce81ead1d34ae10ffb01709131a55d80a | |
parent | c728c7157e076915f6b5ae5831228cd452872fc7 (diff) | |
download | gmp-20d6753bacc14879fb51a3b615932c694c82c28e.tar.gz |
* acinclude.m4 (GMP_FUNC_VSNPRINTF): Let the test program work as C++.
-rw-r--r-- | acinclude.m4 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 39f838131..6067a7cd3 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1897,12 +1897,16 @@ else AC_CACHE_CHECK([whether vsnprintf works], gmp_cv_func_vsnprintf, [AC_TRY_RUN([ +#include <string.h> /* for strcmp */ +#include <stdio.h> /* for vsnprintf */ + #if HAVE_STDARG #include <stdarg.h> #else #include <varargs.h> #endif +int #if HAVE_STDARG check (const char *fmt, ...) #else @@ -1930,6 +1934,8 @@ check (va_alist) /* allowed return values */ if (ret != -1 && ret != 3 && ret != 11) exit (2); + + return 0; } int |