diff options
| author | Jörg Frings-Fürst <debian@jff.email> | 2025-10-18 19:07:08 +0200 |
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff.email> | 2025-10-18 19:07:08 +0200 |
| commit | 693ae7b71dfdd1a8146266b5794a71c0dbe5dff0 (patch) | |
| tree | 9704e2f7bd8962ea8911cd6f4e2d37227d7eff2e /tests/stdio-write.c | |
| parent | b8b9b0ac61ac47dddc58717f23619f8b06640498 (diff) | |
| parent | 27dae84ed92f1ef0300263091972338d12e78348 (diff) | |
Update upstream source from tag 'upstream/1.4.1'
Update to upstream version '1.4.1'
with Debian dir 8add41ffbfe3e6636eec0ec134c5af96832cc143
Diffstat (limited to 'tests/stdio-write.c')
| -rw-r--r-- | tests/stdio-write.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/stdio-write.c b/tests/stdio-write.c index ca6aa00c..59ba8fc4 100644 --- a/tests/stdio-write.c +++ b/tests/stdio-write.c @@ -1,5 +1,5 @@ /* POSIX compatible FILE stream write function. - Copyright (C) 2008-2024 Free Software Foundation, Inc. + Copyright (C) 2008-2025 Free Software Foundation, Inc. Written by Bruno Haible <bruno@clisp.org>, 2008. This file is free software: you can redistribute it and/or modify @@ -162,6 +162,9 @@ vprintf (const char *format, va_list args) int vfprintf (FILE *stream, const char *format, va_list args) #undef vfprintf +#if defined __MINGW32__ && !defined _UCRT && __USE_MINGW_ANSI_STDIO +# define vfprintf gl_consolesafe_vfprintf +#endif { CALL_WITH_SIGPIPE_EMULATION (int, vfprintf (stream, format, args), ret == EOF) } @@ -198,6 +201,9 @@ puts (const char *string) size_t fwrite (const void *ptr, size_t s, size_t n, FILE *stream) #undef fwrite +#if (defined _WIN32 && !defined __CYGWIN__) && !defined _UCRT +# define fwrite gl_consolesafe_fwrite +#endif { CALL_WITH_SIGPIPE_EMULATION (size_t, fwrite (ptr, s, n, stream), ret < n) } |
