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
commit584142817ecc76dcec211dcc72bc8ed2654ca6d9 (patch)
tree98050e1cfba941aca2feb4bbad9553cede34a3b1
parent27804756d48ea146052c6f58a788c9f06825588e (diff)
downloadtxr-584142817ecc76dcec211dcc72bc8ed2654ca6d9.tar.gz
txr-584142817ecc76dcec211dcc72bc8ed2654ca6d9.tar.bz2
txr-584142817ecc76dcec211dcc72bc8ed2654ca6d9.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;
}