OSDN Git Service

* configure.ac (gcc_AC_CHECK_DECLS): Add vsnprintf.
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Apr 2005 09:13:27 +0000 (09:13 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Apr 2005 09:13:27 +0000 (09:13 +0000)
* configure: Regenerate.
* config.in: Likewise.
* system.h: Declare vsnprintf if not already declared.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98080 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config.in
gcc/configure
gcc/configure.ac
gcc/system.h

index 82f224c..c58b344 100644 (file)
@@ -1,5 +1,12 @@
 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>
+
        * optc-gen.awk: Handle stand-alone Mask records.
        * opth-gen.awk: Likewise.
        * doc/options.texi (Option file format): Document them.
index 996c2f8..6e4026b 100644 (file)
    0. */
 #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. */
 #undef HAVE_DIRECT_H
 
index 1d96694..98639db 100755 (executable)
@@ -11181,9 +11181,10 @@ CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
 
 
 
+
 for ac_func in getenv atol sbrk abort atof getcwd getwd strsignal \
-       strstr errno snprintf vasprintf malloc realloc calloc 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
+       strstr errno snprintf vsnprintf vasprintf malloc realloc calloc \
+       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
   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
index a2239a5..efa758c 100644 (file)
@@ -1053,8 +1053,8 @@ AM_LANGINFO_CODESET
 saved_CFLAGS="$CFLAGS"
 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
 gcc_AC_CHECK_DECLS(getenv atol sbrk abort atof getcwd getwd strsignal \
-       strstr errno snprintf vasprintf malloc realloc calloc free \
-       basename getopt clock getpagesize gcc_UNLOCKED_FUNCS, , ,[
+       strstr errno snprintf vsnprintf vasprintf malloc realloc calloc \
+       free basename getopt clock getpagesize gcc_UNLOCKED_FUNCS, , ,[
 #include "ansidecl.h"
 #include "system.h"])
 
index 35581a0..720e4df 100644 (file)
@@ -438,6 +438,10 @@ extern void abort (void);
 extern int snprintf (char *, size_t, const char *, ...);
 #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.  */
 #if !defined(HAVE_DESIGNATED_INITIALIZERS)
 #define HAVE_DESIGNATED_INITIALIZERS \