diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:22:30 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:22:30 -0700 |
commit | 086e982175da84b3db958191031380794315f95f (patch) | |
tree | 12f18893b4561c1b0593931dfbb6cb300d6c00c7 /deflate.h | |
parent | 85e7d7d9ba71d95a9e6a64b98bae4fac09f06f1c (diff) | |
download | zlib-086e982175da84b3db958191031380794315f95f.tar.gz |
zlib 1.2.0.4v1.2.0.4
Diffstat (limited to 'deflate.h')
-rw-r--r-- | deflate.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -15,6 +15,14 @@ #include "zutil.h" +/* define NO_GZIP when compiling if you want to disable gzip header and + trailer creation by deflate(). NO_GZIP would be used to avoid linking in + the crc code when it is not needed. For shared libraries, gzip encoding + should be left enabled. */ +#ifndef NO_GZIP +# define GZIP +#endif + /* =========================================================================== * Internal compression state. */ @@ -86,7 +94,7 @@ typedef struct internal_state { ulg pending_buf_size; /* size of pending_buf */ Bytef *pending_out; /* next pending byte to output to the stream */ int pending; /* nb of bytes in the pending buffer */ - int noheader; /* suppress zlib header and adler32 */ + int wrap; /* bit 0 true for zlib, bit 1 true for gzip */ Byte data_type; /* UNKNOWN, BINARY or ASCII */ Byte method; /* STORED (for zip only) or DEFLATED */ int last_flush; /* value of flush param for previous deflate call */ |