Reported by Eli Zaretskii in
<https://lists.gnu.org/archive/html/bug-texinfo/2026-01/msg00099.html>.
* lib/stdio-consolesafe.c (local_vasprintf): Renamed from vasprintf.
(vasprintf): Define as a macro, not as a function.
+2026-01-24 Bruno Haible <bruno@clisp.org>
+
+ stdio-windows: Fix compilation error on old mingw.
+ Reported by Eli Zaretskii in
+ <https://lists.gnu.org/archive/html/bug-texinfo/2026-01/msg00099.html>.
+ * lib/stdio-consolesafe.c (local_vasprintf): Renamed from vasprintf.
+ (vasprintf): Define as a macro, not as a function.
+
2026-01-24 Bruno Haible <bruno@clisp.org>
selinux-h: Fix compilation errors on Android outside Termux.
specifiers as the mingw *printf functions. */
static int
-vasprintf (char **resultp, const char *format, va_list args)
+local_vasprintf (char **resultp, const char *format, va_list args)
{
/* First try: Use a stack-allocated buffer. */
char buf[2048];
return nbytes;
}
+# undef vasprintf
+# define vasprintf local_vasprintf
+
# endif
/* Bypass the functions __mingw_[v][f]printf, that trigger a bug in msvcrt,