summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-05-27 22:30:11 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-05-27 22:30:11 -0700
commit6b3f6b976f10e675728830d2b91f773649cf2466 (patch)
tree98050e1cfba941aca2feb4bbad9553cede34a3b1
parent0ea8f6a106c82d761895ad501d73731da786e906 (diff)
downloadtxr-6b3f6b976f10e675728830d2b91f773649cf2466.tar.gz
txr-6b3f6b976f10e675728830d2b91f773649cf2466.tar.bz2
txr-6b3f6b976f10e675728830d2b91f773649cf2466.zip
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
-rw-r--r--stream.c7
1 files changed, 0 insertions, 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;
}