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))
37typedef unsigned char uch;
39typedef unsigned short ush;
41typedef unsigned long ulg;
43extern const char *
const z_errmsg[10];
46#define ERR_MSG(err) z_errmsg[Z_NEED_DICT-(err)]
48#define ERR_RETURN(strm,err) \
49 return (strm->msg = (char*)ERR_MSG(err), (err))
55# define DEF_WBITS MAX_WBITS
60# define DEF_MEM_LEVEL 8
62# define DEF_MEM_LEVEL MAX_MEM_LEVEL
75#define PRESET_DICT 0x20
79#if defined(MSDOS) || (defined(WINDOWS) && !defined(WIN32))
81# if defined(__TURBOC__) || defined(__BORLANDC__)
82# if (__STDC__ == 1) && (defined(__LARGE__) || defined(__COMPACT__))
84 void _Cdecl farfree(
void *block );
85 void *_Cdecl farmalloc(
unsigned long nbytes );
98#if defined(VAXC) || defined(VMS)
100# define F_OPEN(name, mode) \
101 fopen((name), (mode), "mbc=60", "ctx=stm", "rfm=fix", "mrs=512")
104#if defined(ATARI) || defined(atarist)
115#if defined(MACOS) || defined(TARGET_OS_MAC)
117# if defined(__MWERKS__) && __dest_os != __be_os && __dest_os != __win32_os
121# define fdopen(fd,mode) NULL
140#if defined(_BEOS_) || defined(RISCOS)
141# define fdopen(fd,mode) NULL
144#if (defined(_MSC_VER) && (_MSC_VER > 600)) && !defined __INTERIX
145# if defined(_WIN32_WCE)
146# define fdopen(fd,mode) NULL
147# ifndef _PTRDIFF_T_DEFINED
148 typedef int ptrdiff_t;
149# define _PTRDIFF_T_DEFINED
152# define fdopen(fd,type) _fdopen(fd,type)
156#if defined(__BORLANDC__)
163#if !defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0
175# define F_OPEN(name, mode) fopen((name), (mode))
180#if defined(STDC99) || (defined(__TURBOC__) && __TURBOC__ >= 0x550)
181# ifndef HAVE_VSNPRINTF
182# define HAVE_VSNPRINTF
185#if defined(__CYGWIN__)
186# ifndef HAVE_VSNPRINTF
187# define HAVE_VSNPRINTF
190#ifndef HAVE_VSNPRINTF
201# if !defined(vsnprintf) && !defined(NO_vsnprintf)
202# if !defined(_MSC_VER) || ( defined(_MSC_VER) && _MSC_VER < 1500 )
203# define vsnprintf _vsnprintf
218#if defined(SMALL_MEDIUM) && !defined(_MSC_VER) && !defined(__SC__)
225#if defined(STDC) && !defined(HAVE_MEMCPY) && !defined(NO_MEMCPY)
230# define zmemcpy _fmemcpy
231# define zmemcmp _fmemcmp
232# define zmemzero(dest, len) _fmemset(dest, 0, len)
234# define zmemcpy memcpy
235# define zmemcmp memcmp
236# define zmemzero(dest, len) memset(dest, 0, len)
249# define Assert(cond,msg) {if(!(cond)) z_error(msg);}
250# define Trace(x) {if (z_verbose>=0) fprintf x ;}
251# define Tracev(x) {if (z_verbose>0) fprintf x ;}
252# define Tracevv(x) {if (z_verbose>1) fprintf x ;}
253# define Tracec(c,x) {if (z_verbose>0 && (c)) fprintf x ;}
254# define Tracecv(c,x) {if (z_verbose>1 && (c)) fprintf x ;}
256# define Assert(cond,msg)
269#define ZALLOC(strm, items, size) \
270 (*((strm)->zalloc))((strm)->opaque, (items), (size))
271#define ZFREE(strm, addr) (*((strm)->zfree))((strm)->opaque, (voidpf)(addr))
272#define TRY_FREE(s, p) {if (p) ZFREE(s, p);}
Byte FAR * voidpf
Definition: zconf.h:357
#define ZEXPORT
Definition: zconf.h:324
#define ZEXTERN
Definition: zconf.h:321
unsigned int uInt
Definition: zconf.h:337
#define z_off_t
Definition: zconf.h:392
unsigned long uLong
Definition: zconf.h:338
Byte FAR Bytef
Definition: zconf.h:344
#define FAR
Definition: zconf.h:331
unsigned short ush
Definition: zutil.h:39
#define ZLIB_INTERNAL
Definition: zutil.h:19
uch FAR uchf
Definition: zutil.h:38
ush FAR ushf
Definition: zutil.h:40
unsigned long ulg
Definition: zutil.h:41
const char *const z_errmsg[10]
unsigned char uch
Definition: zutil.h:37
ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t))