summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/vfwprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/vfwprintf.c')
-rw-r--r--newlib/libc/stdio/vfwprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/stdio/vfwprintf.c b/newlib/libc/stdio/vfwprintf.c
index 7d38ecf82..968c218b5 100644
--- a/newlib/libc/stdio/vfwprintf.c
+++ b/newlib/libc/stdio/vfwprintf.c
@@ -399,8 +399,8 @@ _DEFUN(_VFWPRINTF_R, (data, fp, fmt0, ap),
wchar_t thousands_sep = L'\0';
const char *grouping = NULL;
#endif
-#if defined (FLOATING_POINT) && defined (_MB_CAPABLE) \
- && !defined (__HAVE_LOCALE_INFO_EXTENDED__)
+#if defined (_MB_CAPABLE) && !defined (__HAVE_LOCALE_INFO_EXTENDED__) \
+ && (defined (FLOATING_POINT) || defined (_WANT_IO_C99_FORMATS))
mbstate_t state; /* mbtowc calls from library must not change state */
#endif
#ifdef FLOATING_POINT