1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-01-19 10:03:34 +03:00

- config.h.in configure.in error.c: fix a compilation problem

on platforms without vsnprintf (xml@thewrittenword.com)
Daniel
This commit is contained in:
Daniel Veillard 2001-03-22 12:44:45 +00:00
parent e020c3a797
commit a5f013bf90
4 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Thu Mar 22 13:41:22 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* config.h.in configure.in error.c: fix a compilation problem
on platforms without vsnprintf (xml@thewrittenword.com)
Wed Mar 21 19:04:34 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* parser.c: fixed a function name header typo

View File

@ -55,6 +55,9 @@
/* Define if you have the strndup function. */
#undef HAVE_STRNDUP
/* Define if you have the vsnprintf function. */
#undef HAVE_VSNPRINTF
/* Define if you have the <arpa/inet.h> header file. */
#undef HAVE_ARPA_INET_H

View File

@ -100,7 +100,7 @@ AC_SUBST(CORBA_CFLAGS)
dnl Checks for library functions.
AC_FUNC_STRFTIME
AC_CHECK_FUNCS(strdup strndup strerror snprintf)
AC_CHECK_FUNCS(strdup strndup strerror snprintf vsnprintf)
AC_CHECK_FUNCS(finite isnand fp_class class fpclass)
AC_CHECK_FUNCS(strftime localtime)
AC_CHECK_FUNCS(stat _stat)

View File

@ -163,7 +163,11 @@ xmlGetVarStr(const char * msg, va_list args) {
while (1) {
left = size - length;
/* Try to print in the allocated space. */
chars = vsnprintf(str + length, left, msg, args);
#ifdef HAVE_VSNPRINTF
chars = vsnprintf(str + length, left, msg, args);
#else
chars = vsprintf(str + length, msg, args);
#endif
/* If that worked, we're done. */
if ((chars > -1) && (chars < left ))
break;