Fixes memgzio with zlib > 1.2.3.8

This commit is contained in:
EoD 2016-07-30 23:55:00 +02:00
parent 3f5f9adbe9
commit 3cf6c2ca7b
1 changed files with 9 additions and 0 deletions

View File

@ -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