From 584142817ecc76dcec211dcc72bc8ed2654ca6d9 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 27 May 2022 22:30:11 -0700 Subject: streams: remove workaround for older Cygwin bug. * stream.c (se_putc): Remove a workaround for a Cygwin bug that was fixed in 2016 in 2.5.0. Here is the mailing list thread: https://sourceware.org/pipermail/cygwin/2016-March/226554.html --- stream.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/stream.c b/stream.c index e394d6ee..0740dda1 100644 --- a/stream.c +++ b/stream.c @@ -633,14 +633,7 @@ static int se_putc(int ch, FILE *f) { int ret; sig_save_enable; -#ifdef __CYGWIN__ - { - char out[2] = { ch, 0 }; - ret = fputs(out, f) == EOF ? EOF : ch; - } -#else ret = putc(ch, f); -#endif sig_restore_enable; return ret; } -- cgit v1.2.3