(zlib) Builds now for iOS
This commit is contained in:
parent
e53ff57166
commit
a59faab855
|
@ -260,7 +260,7 @@ int ZEXPORT deflateInit2_(z_streamp strm, int level, int method, int windowBits,
|
|||
if (windowBits == 8) windowBits = 9; /* until 256-byte window bug fixed */
|
||||
s = (deflate_state *) ZALLOC(strm, 1, sizeof(deflate_state));
|
||||
if (s == Z_NULL) return Z_MEM_ERROR;
|
||||
strm->state = (struct internal_state_deflate*)s;
|
||||
strm->state = (struct internal_state*)s;
|
||||
s->strm = strm;
|
||||
|
||||
s->wrap = wrap;
|
||||
|
|
|
@ -160,6 +160,13 @@
|
|||
#define MODE_COPY 1 /* copy input directly */
|
||||
#define MODE_GZIP 2 /* decompress a gzip stream */
|
||||
|
||||
struct gzFile_s
|
||||
{
|
||||
unsigned have;
|
||||
unsigned char *next;
|
||||
z_off64_t pos;
|
||||
};
|
||||
|
||||
/* internal gzip file state data structure */
|
||||
typedef struct {
|
||||
/* exposed contents for gzgetc() macro */
|
||||
|
|
Loading…
Reference in New Issue