summaryrefslogtreecommitdiff
path: root/gzlib.c
diff options
context:
space:
mode:
authorMika Lindqvist <postmaster@raasu.org>2017-11-04 20:49:21 +0200
committerHans Kristian Rosbach <hk-git@circlestorm.org>2018-01-31 10:45:29 +0100
commitaff0fc6e3c42f5c7837d0bd069539ff8173fdd3c (patch)
tree44ecdd0c9f74948a015bcf3963096d956bae3491 /gzlib.c
parent4408564a27dfc91bd27e1b7803f0cc514bf3d2be (diff)
Adapt code to support PREFIX macros and update build scripts
Diffstat (limited to 'gzlib.c')
-rw-r--r--gzlib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gzlib.c b/gzlib.c
index 045a763..7b0e136 100644
--- a/gzlib.c
+++ b/gzlib.c
@@ -331,7 +331,7 @@ z_off64_t ZEXPORT PREFIX(gzseek64)(gzFile file, z_off64_t offset, int whence) {
offset += state->x.pos;
if (offset < 0) /* before start of file! */
return -1;
- if (gzrewind(file) == -1) /* rewind, then skip to offset */
+ if (PREFIX(gzrewind)(file) == -1) /* rewind, then skip to offset */
return -1;
}
@@ -356,7 +356,7 @@ z_off64_t ZEXPORT PREFIX(gzseek64)(gzFile file, z_off64_t offset, int whence) {
z_off_t ZEXPORT PREFIX(gzseek)(gzFile file, z_off_t offset, int whence) {
z_off64_t ret;
- ret = gzseek64(file, (z_off64_t)offset, whence);
+ ret = PREFIX(gzseek64)(file, (z_off64_t)offset, whence);
return ret == (z_off_t)ret ? (z_off_t)ret : -1;
}
@@ -379,7 +379,7 @@ z_off64_t ZEXPORT PREFIX(gztell64)(gzFile file) {
z_off_t ZEXPORT PREFIX(gztell)(gzFile file) {
z_off64_t ret;
- ret = gztell64(file);
+ ret = PREFIX(gztell64)(file);
return ret == (z_off_t)ret ? (z_off_t)ret : -1;
}
@@ -408,7 +408,7 @@ z_off64_t ZEXPORT PREFIX(gzoffset64)(gzFile file) {
z_off_t ZEXPORT PREFIX(gzoffset)(gzFile file) {
z_off64_t ret;
- ret = gzoffset64(file);
+ ret = PREFIX(gzoffset64)(file);
return ret == (z_off_t)ret ? (z_off_t)ret : -1;
}