16 #if ((__GNUC__-0) * 10 + __GNUC_MINOR__-0 >= 33) && !defined(NO_VIZ)
17 # define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
19 # define ZLIB_INTERNAL
25 # if !(defined(_WIN32_WCE) && defined(_MSC_VER))
39 typedef unsigned char uch;
41 typedef unsigned short ush;
43 typedef unsigned long ulg;
45 extern 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
61 #if MAX_MEM_LEVEL >= 8
62 # define DEF_MEM_LEVEL 8
64 # define DEF_MEM_LEVEL MAX_MEM_LEVEL
68 #define STORED_BLOCK 0
69 #define STATIC_TREES 1
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 );
101 # define OS_CODE 0x01
104 #if defined(VAXC) || defined(VMS)
105 # define OS_CODE 0x02
106 # define F_OPEN(name, mode) \
107 fopen((name), (mode), "mbc=60", "ctx=stm", "rfm=fix", "mrs=512")
110 #if defined(ATARI) || defined(atarist)
111 # define OS_CODE 0x05
115 # define OS_CODE 0x06
123 #if defined(MACOS) || defined(TARGET_OS_MAC)
124 # define OS_CODE 0x07
125 # if defined(__MWERKS__) && __dest_os != __be_os && __dest_os != __win32_os
131 # define fdopen(fd,mode) NULL
137 # define OS_CODE 0x0a
142 # define OS_CODE 0x0b
147 # define OS_CODE 0x0f
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
181 # define OS_CODE 0x03
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
204 # define NO_vsnprintf
207 # define NO_vsnprintf
211 # if !defined(vsnprintf) && !defined(NO_vsnprintf)
212 # if !defined(_MSC_VER) || ( defined(_MSC_VER) && _MSC_VER < 1500 )
213 # define vsnprintf _vsnprintf
218 # define NO_vsnprintf
222 # define NO_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, len)
244 # define zmemcpy memcpy
245 # define zmemcmp memcmp
246 # define zmemzero(dest, len) memset(dest, 0, 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)
273 # define Tracecv(c,x)
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);}
void ZLIB_INTERNAL zmemzero(Bytef *dest, uInt len)
#define ABC_NAMESPACE_HEADER_START
NAMESPACES ///.
static char s1[largest_string]
void ZLIB_INTERNAL zmemcpy(Bytef *dest, const Bytef *source, uInt len)
uLong ZEXPORT adler32_combine64(uLong adler1, uLong adler2, z_off64_t len2)
const char *const z_errmsg[10]
#define ABC_NAMESPACE_HEADER_END
int ZLIB_INTERNAL zmemcmp(const Bytef *s1, const Bytef *s2, uInt len)
ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t))
uLong ZEXPORT crc32_combine64(uLong crc1, uLong crc2, z_off64_t len2)
voidpf ZLIB_INTERNAL zcalloc(voidpf opaque, unsigned items, unsigned size)
void ZLIB_INTERNAL zcfree(voidpf opaque, voidpf ptr)