(zlib) Builds now for iOS

This commit is contained in:
twinaphex 2014-01-11 09:52:25 +01:00
parent e53ff57166
commit a59faab855
2 changed files with 8 additions and 1 deletions

View File

@ -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;

7
deps/rzlib/gzguts.h vendored
View File

@ -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 */