summaryrefslogtreecommitdiff
path: root/infback.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 /infback.c
parent4408564a27dfc91bd27e1b7803f0cc514bf3d2be (diff)
Adapt code to support PREFIX macros and update build scripts
Diffstat (limited to 'infback.c')
-rw-r--r--infback.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/infback.c b/infback.c
index f2a1b46..337a3ba 100644
--- a/infback.c
+++ b/infback.c
@@ -25,11 +25,11 @@ static void fixedtables(struct inflate_state *state);
windowBits is in the range 8..15, and window is a user-supplied
window and output buffer that is 2**windowBits bytes.
*/
-int ZEXPORT PREFIX(inflateBackInit_)(z_stream *strm, int windowBits, unsigned char *window,
+int ZEXPORT PREFIX(inflateBackInit_)(PREFIX3(stream) *strm, int windowBits, unsigned char *window,
const char *version, int stream_size) {
struct inflate_state *state;
- if (version == NULL || version[0] != ZLIB_VERSION[0] || stream_size != (int)(sizeof(z_stream)))
+ if (version == NULL || version[0] != PREFIX2(VERSION)[0] || stream_size != (int)(sizeof(PREFIX3(stream))))
return Z_VERSION_ERROR;
if (strm == NULL || window == NULL || windowBits < 8 || windowBits > 15)
return Z_STREAM_ERROR;
@@ -230,7 +230,7 @@ static void fixedtables(struct inflate_state *state) {
inflateBack() can also return Z_STREAM_ERROR if the input parameters
are not correct, i.e. strm is NULL or the state was not initialized.
*/
-int ZEXPORT PREFIX(inflateBack)(z_stream *strm, in_func in, void *in_desc, out_func out, void *out_desc) {
+int ZEXPORT PREFIX(inflateBack)(PREFIX3(stream) *strm, in_func in, void *in_desc, out_func out, void *out_desc) {
struct inflate_state *state;
const unsigned char *next; /* next input */
unsigned char *put; /* next output */
@@ -602,7 +602,7 @@ int ZEXPORT PREFIX(inflateBack)(z_stream *strm, in_func in, void *in_desc, out_f
return ret;
}
-int ZEXPORT PREFIX(inflateBackEnd)(z_stream *strm) {
+int ZEXPORT PREFIX(inflateBackEnd)(PREFIX3(stream) *strm) {
if (strm == NULL || strm->state == NULL || strm->zfree == NULL)
return Z_STREAM_ERROR;
ZFREE(strm, strm->state);