From 6a181356bdbde946a2a9f15d33578b88ef5f3443 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Thu, 17 May 2012 21:13:23 -0700 Subject: [PATCH] Fix gzgetc undefine when Z_PREFIX set [Turk]. --- gzread.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gzread.c b/gzread.c index 3493d34..8ace830 100644 --- a/gzread.c +++ b/gzread.c @@ -378,7 +378,11 @@ int ZEXPORT gzread(file, buf, len) } /* -- see zlib.h -- */ -#undef gzgetc +#ifdef Z_PREFIX_SET +# undef z_gzgetc +#else +# undef gzgetc +#endif int ZEXPORT gzgetc(file) gzFile file; {