16#if ((__GNUC__-0) * 10 + __GNUC_MINOR__-0 >= 33) && !defined(NO_VIZ)
17# define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
25# if !(defined(_WIN32_WCE) && defined(_MSC_VER))
39typedef unsigned char uch;
41typedef unsigned short ush;
43typedef unsigned long ulg;
45extern const char *
const z_errmsg[10];
48#define ERR_MSG(err) z_errmsg[Z_NEED_DICT-(err)]
50#define ERR_RETURN(strm,err) \
51 return (strm->msg = (char*)ERR_MSG(err), (err))
57# define DEF_WBITS MAX_WBITS
62# define DEF_MEM_LEVEL 8
64# define DEF_MEM_LEVEL MAX_MEM_LEVEL
77#define PRESET_DICT 0x20
81#if defined(MSDOS) || (defined(WINDOWS) && !defined(WIN32))
83# if defined(__TURBOC__) || defined(__BORLANDC__)
84# if (__STDC__ == 1) && (defined(__LARGE__) || defined(__COMPACT__))
86 void _Cdecl farfree(
void *block );
87 void *_Cdecl farmalloc(
unsigned long nbytes );
104#if defined(VAXC) || defined(VMS)
106# define F_OPEN(name, mode) \
107 fopen((name), (mode), "mbc=60", "ctx=stm", "rfm=fix", "mrs=512")
110#if defined(ATARI) || defined(atarist)
123#if defined(MACOS) || defined(TARGET_OS_MAC)
125# if defined(__MWERKS__) && __dest_os != __be_os && __dest_os != __win32_os
131# define fdopen(fd,mode) NULL
150#if defined(_BEOS_) || defined(RISCOS)
151# define fdopen(fd,mode) NULL
154#if (defined(_MSC_VER) && (_MSC_VER > 600)) && !defined __INTERIX
155# if defined(_WIN32_WCE)
156# define fdopen(fd,mode) NULL
157# ifndef _PTRDIFF_T_DEFINED
158 typedef int ptrdiff_t;
159# define _PTRDIFF_T_DEFINED
162# define fdopen(fd,type) _fdopen(fd,type)
166#if defined(__BORLANDC__)
173#if !defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0
185# define F_OPEN(name, mode) fopen((name), (mode))
190#if defined(STDC99) || (defined(__TURBOC__) && __TURBOC__ >= 0x550)
191# ifndef HAVE_VSNPRINTF
192# define HAVE_VSNPRINTF
195#if defined(__CYGWIN__)
196# ifndef HAVE_VSNPRINTF
197# define HAVE_VSNPRINTF
200#ifndef HAVE_VSNPRINTF
211# if !defined(vsnprintf) && !defined(NO_vsnprintf)
212# if !defined(_MSC_VER) || ( defined(_MSC_VER) && _MSC_VER < 1500 )
213# define vsnprintf _vsnprintf
228#if defined(SMALL_MEDIUM) && !defined(_MSC_VER) && !defined(__SC__)
235#if defined(STDC) && !defined(HAVE_MEMCPY) && !defined(NO_MEMCPY)
240# define zmemcpy _fmemcpy
241# define zmemcmp _fmemcmp
242# define zmemzero(dest, len) _fmemset(dest, 0, (size_t)len)
244# define zmemcpy memcpy
245# define zmemcmp memcmp
246# define zmemzero(dest, len) memset(dest, 0, (size_t)len)
261# define Assert(cond,msg) {if(!(cond)) z_error(msg);}
262# define Trace(x) {if (z_verbose>=0) fprintf x ;}
263# define Tracev(x) {if (z_verbose>0) fprintf x ;}
264# define Tracevv(x) {if (z_verbose>1) fprintf x ;}
265# define Tracec(c,x) {if (z_verbose>0 && (c)) fprintf x ;}
266# define Tracecv(c,x) {if (z_verbose>1 && (c)) fprintf x ;}
268# define Assert(cond,msg)
281#define ZALLOC(strm, items, size) \
282 (*((strm)->zalloc))((strm)->opaque, (items), (size))
283#define ZFREE(strm, addr) (*((strm)->zfree))((strm)->opaque, (voidpf)(addr))
284#define TRY_FREE(s, p) {if (p) ZFREE(s, p);}
#define ABC_NAMESPACE_HEADER_END
#define ABC_NAMESPACE_HEADER_START
NAMESPACES ///.
uLong ZEXPORT adler32_combine64(uLong adler1, uLong adler2, z_off64_t len2)
uLong ZEXPORT crc32_combine64(uLong crc1, uLong crc2, z_off64_t len2)
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)
int ZLIB_INTERNAL zmemcmp(const Bytef *s1, const Bytef *s2, uInt len)
void ZLIB_INTERNAL zmemcpy(Bytef *dest, const Bytef *source, uInt len)
const char *const z_errmsg[10]