]> git.lizzy.rs Git - zlib.git/commitdiff
Remove unnecessary gzgetc_ function.
authorMark Adler <madler@alumni.caltech.edu>
Sat, 11 Feb 2012 07:55:12 +0000 (23:55 -0800)
committerMark Adler <madler@alumni.caltech.edu>
Sat, 11 Feb 2012 07:55:12 +0000 (23:55 -0800)
gzread.c
zlib.h

index 46d40e0bb8d2982145e97729d320be4959e86189..e25786787bd8a32317b1c23bbd219d4ea92c43a1 100644 (file)
--- a/gzread.c
+++ b/gzread.c
@@ -373,7 +373,8 @@ int ZEXPORT gzread(file, buf, len)
 }
 
 /* -- see zlib.h -- */
-int ZEXPORT gzgetc_(file)
+#undef gzgetc
+int ZEXPORT gzgetc(file)
     gzFile file;
 {
     int ret;
@@ -402,13 +403,6 @@ int ZEXPORT gzgetc_(file)
     return ret < 1 ? -1 : buf[0];
 }
 
-#undef gzgetc
-int ZEXPORT gzgetc(file)
-gzFile file;
-{
-    return gzgetc_(file);
-}    
-
 /* -- see zlib.h -- */
 int ZEXPORT gzungetc(c, file)
     int c;
diff --git a/zlib.h b/zlib.h
index bab908a0b84aca920d732064d082d1d9e7604952..3d3ab71c2a63247998035f38dd3dc661a993cc6e 100644 (file)
--- a/zlib.h
+++ b/zlib.h
@@ -1650,14 +1650,13 @@ struct gzFile_s {
     unsigned char *next;
     z_off64_t pos;
 };
-ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file));
 #ifdef Z_PREFIX_SET
 #  undef z_gzgetc
 #  define z_gzgetc(g) \
-          ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : gzgetc_(g))
+          ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : gzgetc(g))
 #else
 #  define gzgetc(g) \
-          ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : gzgetc_(g))
+          ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : gzgetc(g))
 #endif
 
 /* provide 64-bit offset functions if _LARGEFILE64_SOURCE defined, and/or