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:
parent
e020c3a797
commit
a5f013bf90
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
6
error.c
6
error.c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user