From 3cf6c2ca7bb7b198b2c46b440a7a510b1282b33b Mon Sep 17 00:00:00 2001 From: EoD Date: Sat, 30 Jul 2016 23:55:00 +0200 Subject: [PATCH] Fixes memgzio with zlib > 1.2.3.8 --- src/common/memgzio.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/common/memgzio.h b/src/common/memgzio.h index 90a3963d..82882da9 100644 --- a/src/common/memgzio.h +++ b/src/common/memgzio.h @@ -21,4 +21,13 @@ int ZEXPORT memgzclose(gzFile file); long ZEXPORT memtell(gzFile file); z_off_t ZEXPORT memgzseek(gzFile file, z_off_t off, int whence); +// Newer version of zlib dropped gzio support +#ifndef OF /* function prototypes */ +# ifdef STDC +# define OF(args) args +# else +# define OF(args) () +# endif +#endif + #endif // MEMGZIO_H