mirror of git://gcc.gnu.org/git/gcc.git
configure.ac (gcc_AC_CHECK_DECLS): Add vsnprintf.
* configure.ac (gcc_AC_CHECK_DECLS): Add vsnprintf. * configure: Regenerate. * config.in: Likewise. * system.h: Declare vsnprintf if not already declared. From-SVN: r98080
This commit is contained in:
parent
e8bb9922f8
commit
367e831921
|
@ -1,3 +1,10 @@
|
||||||
|
2005-04-13 Eric Botcazou <ebotcazou@libertysurf.fr>
|
||||||
|
|
||||||
|
* configure.ac (gcc_AC_CHECK_DECLS): Add vsnprintf.
|
||||||
|
* configure: Regenerate.
|
||||||
|
* config.in: Likewise.
|
||||||
|
* system.h: Declare vsnprintf if not already declared.
|
||||||
|
|
||||||
2005-04-13 Eric Botcazou <ebotcazou@libertysurf.fr>
|
2005-04-13 Eric Botcazou <ebotcazou@libertysurf.fr>
|
||||||
|
|
||||||
* optc-gen.awk: Handle stand-alone Mask records.
|
* optc-gen.awk: Handle stand-alone Mask records.
|
||||||
|
|
|
@ -314,6 +314,10 @@
|
||||||
0. */
|
0. */
|
||||||
#undef HAVE_DECL_VASPRINTF
|
#undef HAVE_DECL_VASPRINTF
|
||||||
|
|
||||||
|
/* Define to 1 if we found a declaration for 'vsnprintf', otherwise define to
|
||||||
|
0. */
|
||||||
|
#undef HAVE_DECL_VSNPRINTF
|
||||||
|
|
||||||
/* Define to 1 if you have the <direct.h> header file. */
|
/* Define to 1 if you have the <direct.h> header file. */
|
||||||
#undef HAVE_DIRECT_H
|
#undef HAVE_DIRECT_H
|
||||||
|
|
||||||
|
|
|
@ -11179,11 +11179,12 @@ CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for ac_func in getenv atol sbrk abort atof getcwd getwd strsignal \
|
for ac_func in getenv atol sbrk abort atof getcwd getwd strsignal \
|
||||||
strstr errno snprintf vasprintf malloc realloc calloc free \
|
strstr errno snprintf vsnprintf vasprintf malloc realloc calloc \
|
||||||
basename getopt clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
|
free basename getopt clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
|
||||||
do
|
do
|
||||||
ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
|
ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
|
||||||
echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
|
echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
|
||||||
|
|
|
@ -1053,8 +1053,8 @@ AM_LANGINFO_CODESET
|
||||||
saved_CFLAGS="$CFLAGS"
|
saved_CFLAGS="$CFLAGS"
|
||||||
CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
|
CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
|
||||||
gcc_AC_CHECK_DECLS(getenv atol sbrk abort atof getcwd getwd strsignal \
|
gcc_AC_CHECK_DECLS(getenv atol sbrk abort atof getcwd getwd strsignal \
|
||||||
strstr errno snprintf vasprintf malloc realloc calloc free \
|
strstr errno snprintf vsnprintf vasprintf malloc realloc calloc \
|
||||||
basename getopt clock getpagesize gcc_UNLOCKED_FUNCS, , ,[
|
free basename getopt clock getpagesize gcc_UNLOCKED_FUNCS, , ,[
|
||||||
#include "ansidecl.h"
|
#include "ansidecl.h"
|
||||||
#include "system.h"])
|
#include "system.h"])
|
||||||
|
|
||||||
|
|
|
@ -438,6 +438,10 @@ extern void abort (void);
|
||||||
extern int snprintf (char *, size_t, const char *, ...);
|
extern int snprintf (char *, size_t, const char *, ...);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined (HAVE_DECL_VSNPRINTF) && !HAVE_DECL_VSNPRINTF
|
||||||
|
extern int vsnprintf(char *, size_t, const char *, va_list);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* 1 if we have C99 designated initializers. */
|
/* 1 if we have C99 designated initializers. */
|
||||||
#if !defined(HAVE_DESIGNATED_INITIALIZERS)
|
#if !defined(HAVE_DESIGNATED_INITIALIZERS)
|
||||||
#define HAVE_DESIGNATED_INITIALIZERS \
|
#define HAVE_DESIGNATED_INITIALIZERS \
|
||||||
|
|
Loading…
Reference in New Issue