]> sourceware.org Git - newlib-cygwin.git/commitdiff
* libc/stdio/vfwprintf.c (_VFWPRINTF_R): Fix guard around state to
authorCorinna Vinschen <corinna@vinschen.de>
Fri, 10 Aug 2012 09:37:32 +0000 (09:37 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Fri, 10 Aug 2012 09:37:32 +0000 (09:37 +0000)
allow usage in !FLOATING_POINT && _WANT_IO_C99_FORMATS case.

newlib/ChangeLog
newlib/libc/stdio/vfwprintf.c

index 2be47231f34905f987c1acd83451375b106af287..cc8e7dccc25276c2e3dfb5cbd34c31c9b4d9b8a0 100644 (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>
 
        * libc/posix/engine.c(dissect): Guard diagnostic pragma for right
index 7d38ecf821e40b11a83061a8f884fc63e844bb63..968c218b53998fee29b1f00c11c8d0d18fe60d35 100644 (file)
@@ -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
This page took 0.051561 seconds and 5 git commands to generate.