Make long long printing work if snprintf is not available. (#332841,

2006-04-05  Matthias Clasen  <mclasen@redhat.com>

	* glib/gnulib/vasnprintf.c (vasnprintf): Make
	long long printing work if snprintf is not
	available.  (#332841, Michael McDonald)
This commit is contained in:
Matthias Clasen 2006-04-05 15:07:42 +00:00 committed by Matthias Clasen
parent 2feb9106d5
commit 46676f6572
3 changed files with 21 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2006-04-05 Matthias Clasen <mclasen@redhat.com>
* glib/gnulib/vasnprintf.c (vasnprintf): Make
long long printing work if snprintf is not
available. (#332841, Michael McDonald)
2006-04-04 Pema Geyleg <pema.geyleg@gmail.com>
* configure.in: Added dz (Dzongkha) to ALL_LINGUAS.

View File

@ -1,3 +1,9 @@
2006-04-05 Matthias Clasen <mclasen@redhat.com>
* glib/gnulib/vasnprintf.c (vasnprintf): Make
long long printing work if snprintf is not
available. (#332841, Michael McDonald)
2006-04-04 Pema Geyleg <pema.geyleg@gmail.com>
* configure.in: Added dz (Dzongkha) to ALL_LINGUAS.

View File

@ -853,11 +853,19 @@ vasnprintf (char *resultbuf, size_t *lengthp, const char *format, va_list args)
}
}
count = print_long_long (result + length, maxlen,
#if HAVE_SNPRINTF
count = print_long_long (result + length, maxlen,
width, precision,
dp->flags,
dp->conversion,
arg);
#else
count = print_long_long (tmp, tmp_length,
width, precision,
dp->flags,
dp->conversion,
arg);
#endif
}
break;
#else