From 3be412c58f81a1406d8b3848e0a7fc8c00e701c8 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 11 Jan 2014 10:05:44 +0100 Subject: [PATCH] (rzlib) Compiles on Xcode 3.2.6 as well now --- deps/rzlib/gzguts.h | 12 ++++++++---- deps/rzlib/inflate.c | 4 ++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/deps/rzlib/gzguts.h b/deps/rzlib/gzguts.h index cb7352e2e4..1fc2caa357 100644 --- a/deps/rzlib/gzguts.h +++ b/deps/rzlib/gzguts.h @@ -132,10 +132,14 @@ /* provide prototypes for these when building zlib without LFS */ #if !defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0 - ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); - ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t, int)); - ZEXTERN z_off64_t ZEXPORT gztell64 OF((gzFile)); - ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile)); +#ifndef z_off64_t +#define z_off64_t z_off_t +#endif + + gzFile gzopen64 OF((const char *, const char *)); + z_off64_t gzseek64 OF((gzFile, z_off64_t, int)); + z_off64_t gztell64 OF((gzFile)); + z_off64_t gzoffset64 OF((gzFile)); #endif /* default memLevel */ diff --git a/deps/rzlib/inflate.c b/deps/rzlib/inflate.c index b65283ac45..4213615636 100644 --- a/deps/rzlib/inflate.c +++ b/deps/rzlib/inflate.c @@ -91,6 +91,10 @@ # endif #endif +#ifndef Z_TREES +#define Z_TREES 6 +#endif + /* function prototypes */ local void fixedtables OF((struct inflate_state FAR *state)); local int updatewindow OF((z_streamp strm, const unsigned char FAR *end,