* libc/stdio/vfwprintf.c (_VFWPRINTF_R): Fix guard around state to

allow usage in !FLOATING_POINT && _WANT_IO_C99_FORMATS case.
This commit is contained in:
Corinna Vinschen 2012-08-10 09:37:32 +00:00
parent 52d2371da5
commit c9ace3130c
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2012-08-09 Corinna Vinschen <vinschen@redhat.com>
* libc/stdio/vfwprintf.c (_VFWPRINTF_R): Fix guard around state to
allow usage in !FLOATING_POINT && _WANT_IO_C99_FORMATS case.
2012-08-08 Eric Blake <eblake@redhat.com> 2012-08-08 Eric Blake <eblake@redhat.com>
* libc/posix/engine.c(dissect): Guard diagnostic pragma for right * libc/posix/engine.c(dissect): Guard diagnostic pragma for right

View File

@ -399,8 +399,8 @@ _DEFUN(_VFWPRINTF_R, (data, fp, fmt0, ap),
wchar_t thousands_sep = L'\0'; wchar_t thousands_sep = L'\0';
const char *grouping = NULL; const char *grouping = NULL;
#endif #endif
#if defined (FLOATING_POINT) && defined (_MB_CAPABLE) \ #if defined (_MB_CAPABLE) && !defined (__HAVE_LOCALE_INFO_EXTENDED__) \
&& !defined (__HAVE_LOCALE_INFO_EXTENDED__) && (defined (FLOATING_POINT) || defined (_WANT_IO_C99_FORMATS))
mbstate_t state; /* mbtowc calls from library must not change state */ mbstate_t state; /* mbtowc calls from library must not change state */
#endif #endif
#ifdef FLOATING_POINT #ifdef FLOATING_POINT