summaryrefslogtreecommitdiffstats
path: root/gzio.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-05-31 01:56:00 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-05-31 01:56:00 -0700
commitf3c69b66279e228b6a852e127193c953fdd27951 (patch)
tree6b873130a545f4bea54160f1feafc465db683a07 /gzio.c
parent6802740f63fdd37078bf8b7c90772f97460840ad (diff)
downloadtxr-f3c69b66279e228b6a852e127193c953fdd27951.tar.gz
txr-f3c69b66279e228b6a852e127193c953fdd27951.tar.bz2
txr-f3c69b66279e228b6a852e127193c953fdd27951.zip
gzio: fix multiple definition of gzio_stream_s.
Failed on Cygwin. * gzio.c (gzio_stream_s): Variable defined here. * gzio.h (gzio_stream_s): Turn to declaration with extern.
Diffstat (limited to 'gzio.c')
-rw-r--r--gzio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gzio.c b/gzio.c
index 2485201a..bbdc1d45 100644
--- a/gzio.c
+++ b/gzio.c
@@ -61,6 +61,8 @@ struct gzio_handle {
unsigned is_output : 8;
};
+val gzio_stream_s;
+
struct cobj_class *gzio_stream_cls;
static void gzio_stream_print(val stream, val out, val pretty,