Skip to content

Commit

Permalink
vgz: Compile deflateSetHeader()
Browse files Browse the repository at this point in the history
  • Loading branch information
dridi committed Jul 10, 2024
1 parent b73e190 commit 13d3023
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/libvgz/deflate.c
Original file line number Diff line number Diff line change
Expand Up @@ -715,8 +715,6 @@ int ZEXPORT deflateReset(z_streamp strm) {
return ret;
}

#ifdef NOVGZ

/* ========================================================================= */
int ZEXPORT deflateSetHeader(z_streamp strm, gz_headerp head) {
if (deflateStateCheck(strm) || strm->state->wrap != 2)
Expand All @@ -725,6 +723,8 @@ int ZEXPORT deflateSetHeader(z_streamp strm, gz_headerp head) {
return Z_OK;
}

#ifdef NOVGZ

/* ========================================================================= */
int ZEXPORT deflatePending(z_streamp strm, unsigned *pending, int *bits) {
if (deflateStateCheck(strm)) return Z_STREAM_ERROR;
Expand Down Expand Up @@ -1082,7 +1082,6 @@ int ZEXPORT deflate(z_streamp strm, int flush) {
}
}
else {
#ifdef NOVGZ
put_byte(s, (s->gzhead->text ? 1 : 0) +
(s->gzhead->hcrc ? 2 : 0) +
(s->gzhead->extra == Z_NULL ? 0 : 4) +
Expand Down Expand Up @@ -1200,11 +1199,6 @@ int ZEXPORT deflate(z_streamp strm, int flush) {
return Z_OK;
}
}
#else /* !NOVGZ */
abort();
}
}
#endif /* NOVGZ */
#endif

if (strm->start_bit == 0)
Expand Down

0 comments on commit 13d3023

Please sign in to comment.