From: Paul Eggert Date: Thu, 6 Nov 2025 22:32:10 +0000 (-0800) Subject: stdio-windows: fix include position X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d034e407e23c0514f928ae0a8a63704a3c311e9;p=thirdparty%2Fgnulib.git stdio-windows: fix include position Problem reported by Andy Moreton in: https://lists.gnu.org/r/bug-gnulib/2025-11/msg00059.html * lib/stdio-consolesafe.c [__MINGW32__ && __USE_MINGW_ANSI_STDIO]: Include even if HAVE_VASPRINTF --- diff --git a/ChangeLog b/ChangeLog index e40604e420..f3a5d317fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2025-11-06 Paul Eggert + + stdio-windows: fix include position + Problem reported by Andy Moreton in: + https://lists.gnu.org/r/bug-gnulib/2025-11/msg00059.html + * lib/stdio-consolesafe.c [__MINGW32__ && __USE_MINGW_ANSI_STDIO]: + Include even if HAVE_VASPRINTF + 2025-11-06 Bruno Haible posix_spawn-internal: Don't use vfork() on Solaris/SPARC. diff --git a/lib/stdio-consolesafe.c b/lib/stdio-consolesafe.c index b5ca8cc012..80561a6da4 100644 --- a/lib/stdio-consolesafe.c +++ b/lib/stdio-consolesafe.c @@ -74,11 +74,11 @@ gl_consolesafe_fwrite (const void *ptr, size_t size, size_t nmemb, FILE *fp) #if defined __MINGW32__ && __USE_MINGW_ANSI_STDIO # include "fseterr.h" +# include # if !HAVE_VASPRINTF # include -# include /* The old mingw (before mingw-w64) does not have the vasprintf function. Define a suitable replacement here, that supports the same format