16# define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
23#if defined(STDC) && !defined(Z_SOLO)
24# if !(defined(_WIN32_WCE) && defined(_MSC_VER))
38typedef unsigned char uch;
40typedef unsigned short ush;
42typedef unsigned long ulg;
44#if !defined(Z_U8) && !defined(Z_SOLO) && defined(STDC)
46# if (ULONG_MAX == 0xffffffffffffffff)
47# define Z_U8 unsigned long
48# elif (ULLONG_MAX == 0xffffffffffffffff)
49# define Z_U8 unsigned long long
50# elif (UINT_MAX == 0xffffffffffffffff)
55extern z_const
char *
const z_errmsg[10];
58#define ERR_MSG(err) z_errmsg[Z_NEED_DICT-(err)]
60#define ERR_RETURN(strm,err) \
61 return (strm->msg = ERR_MSG(err), (err))
67# define DEF_WBITS MAX_WBITS
72# define DEF_MEM_LEVEL 8
74# define DEF_MEM_LEVEL MAX_MEM_LEVEL
87#define PRESET_DICT 0x20
91#if defined(MSDOS) || (defined(WINDOWS) && !defined(WIN32))
94# if defined(__TURBOC__) || defined(__BORLANDC__)
95# if (__STDC__ == 1) && (defined(__LARGE__) || defined(__COMPACT__))
97 void _Cdecl farfree(
void *
block );
98 void *_Cdecl farmalloc(
unsigned long nbytes );
112#if defined(VAXC) || defined(VMS)
114# define F_OPEN(name, mode) \
115 fopen((name), (mode), "mbc=60", "ctx=stm", "rfm=fix", "mrs=512")
119# if __TARGET_LIB__ < 0x20000000
121# elif __TARGET_LIB__ < 0x40000000
128#if defined(ATARI) || defined(atarist)
134# if defined(M_I86) && !defined(Z_SOLO)
139#if defined(MACOS) || defined(TARGET_OS_MAC)
142# if defined(__MWERKS__) && __dest_os != __be_os && __dest_os != __win32_os
146# define fdopen(fd,mode) NULL
156#if defined(WIN32) && !defined(__CYGWIN__)
172#if defined(_BEOS_) || defined(RISCOS)
173# define fdopen(fd,mode) NULL
176#if (defined(_MSC_VER) && (_MSC_VER > 600)) && !defined __INTERIX
177# if defined(_WIN32_WCE)
178# define fdopen(fd,mode) NULL
180# define fdopen(fd,type) _fdopen(fd,type)
184#if defined(__BORLANDC__) && !defined(MSDOS)
191#if !defined(_WIN32) && \
192 (!defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0)
204# define F_OPEN(name, mode) fopen((name), (mode))
209#if defined(pyr) || defined(Z_SOLO)
212#if defined(SMALL_MEDIUM) && !defined(_MSC_VER) && !defined(__SC__)
219#if defined(STDC) && !defined(HAVE_MEMCPY) && !defined(NO_MEMCPY)
224# define zmemcpy _fmemcpy
225# define zmemcmp _fmemcmp
226# define zmemzero(dest, len) _fmemset(dest, 0, len)
228# define zmemcpy memcpy
229# define zmemcmp memcmp
230# define zmemzero(dest, len) memset(dest, 0, len)
243# define Assert(cond,msg) {if(!(cond)) z_error(msg);}
244# define Trace(x) {if (z_verbose>=0) fprintf x ;}
245# define Tracev(x) {if (z_verbose>0) fprintf x ;}
246# define Tracevv(x) {if (z_verbose>1) fprintf x ;}
247# define Tracec(c,x) {if (z_verbose>0 && (c)) fprintf x ;}
248# define Tracecv(c,x) {if (z_verbose>1 && (c)) fprintf x ;}
250# define Assert(cond,msg)
264#define ZALLOC(strm, items, size) \
265 (*((strm)->zalloc))((strm)->opaque, (items), (size))
266#define ZFREE(strm, addr) (*((strm)->zfree))((strm)->opaque, (voidpf)(addr))
267#define TRY_FREE(s, p) {if (p) ZFREE(s, p);}
270#define ZSWAP32(q) ((((q) >> 24) & 0xff) + (((q) >> 8) & 0xff00) + \
271 (((q) & 0xff00) << 8) + (((q) & 0xff) << 24))
uLong ZEXPORT adler32_combine64(uLong adler1, uLong adler2, z_off64_t len2)
uLong ZEXPORT crc32_combine64(uLong crc1, uLong crc2, z_off64_t len2)
voidpf alloc_func OF((voidpf opaque, uInt items, uInt size))
void ZLIB_INTERNAL zcfree(voidpf opaque, voidpf ptr)
voidpf ZLIB_INTERNAL zcalloc(voidpf opaque, unsigned items, unsigned size)
void ZLIB_INTERNAL zmemzero(Bytef *dest, uInt len)
void ZLIB_INTERNAL zmemcpy(Bytef *dest, const Bytef *source, uInt len)
int ZLIB_INTERNAL zmemcmp(Bytef *s1, const Bytef *s2, uInt len) const
z_const char *const z_errmsg[10]