diff options
author | Mika Lindqvist <postmaster@raasu.org> | 2017-11-04 20:49:21 +0200 |
---|---|---|
committer | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2018-01-31 10:45:29 +0100 |
commit | aff0fc6e3c42f5c7837d0bd069539ff8173fdd3c (patch) | |
tree | 44ecdd0c9f74948a015bcf3963096d956bae3491 /gzlib.c | |
parent | 4408564a27dfc91bd27e1b7803f0cc514bf3d2be (diff) |
Adapt code to support PREFIX macros and update build scripts
Diffstat (limited to 'gzlib.c')
-rw-r--r-- | gzlib.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } |