diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-05-31 01:56:00 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-05-31 01:56:00 -0700 |
commit | d8a82b088b4b3816dc7e7b91bac149e34ea2c45b (patch) | |
tree | 6b873130a545f4bea54160f1feafc465db683a07 | |
parent | bd3ff4cd2272235e6b3e43843b6ede1ecf4052dc (diff) | |
download | txr-d8a82b088b4b3816dc7e7b91bac149e34ea2c45b.tar.gz txr-d8a82b088b4b3816dc7e7b91bac149e34ea2c45b.tar.bz2 txr-d8a82b088b4b3816dc7e7b91bac149e34ea2c45b.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.
-rw-r--r-- | gzio.c | 2 | ||||
-rw-r--r-- | gzio.h | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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, @@ -26,7 +26,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ -val gzio_stream_s; +extern val gzio_stream_s; void gzio_init(void); gzFile w_gzopen_mode(const wchar_t *wname, const wchar_t *wmode, const struct stdio_mode m, val self); |