1 #ifndef _COMPAT_ZUTIL_H 2 #define _COMPAT_ZUTIL_H 22 # define ZLIB_INTERNAL __attribute__((visibility ("hidden"))) 24 # define ZLIB_INTERNAL 29 #if defined(STDC) && !defined(Z_SOLO) 30 # if !(defined(_WIN32_WCE) && defined(_MSC_VER)) 38 typedef long ptrdiff_t;
46 typedef unsigned char uch;
48 typedef unsigned short ush;
50 typedef unsigned long ulg;
56 #define ERR_MSG(err) z_errmsg[Z_NEED_DICT-(err)] 58 #define ERR_RETURN(strm,err) \ 59 return (strm->msg = ERR_MSG(err), (err)) 65 # define DEF_WBITS MAX_WBITS 69 #if MAX_MEM_LEVEL >= 8 70 # define DEF_MEM_LEVEL 8 72 # define DEF_MEM_LEVEL MAX_MEM_LEVEL 76 #define STORED_BLOCK 0 77 #define STATIC_TREES 1 85 #define PRESET_DICT 0x20 89 #if defined(MSDOS) || (defined(WINDOWS) && !defined(WIN32)) 92 # if defined(__TURBOC__) || defined(__BORLANDC__) 93 # if (__STDC__ == 1) && (defined(__LARGE__) || defined(__COMPACT__)) 95 void _Cdecl farfree(
void *
block );
96 void *_Cdecl farmalloc(
unsigned long nbytes );
107 # define OS_CODE 0x01 110 #if defined(VAXC) || defined(VMS) 111 # define OS_CODE 0x02 112 # define F_OPEN(name, mode) \ 113 fopen((name), (mode), "mbc=60", "ctx=stm", "rfm=fix", "mrs=512") 116 #if defined(ATARI) || defined(atarist) 117 # define OS_CODE 0x05 121 # define OS_CODE 0x06 122 # if defined(M_I86) && !defined(Z_SOLO) 127 #if defined(MACOS) || defined(TARGET_OS_MAC) 128 # define OS_CODE 0x07 130 # if defined(__MWERKS__) && __dest_os != __be_os && __dest_os != __win32_os 134 # define fdopen(fd,mode) NULL 141 # define OS_CODE 0x0a 146 # define OS_CODE 0x0b 151 # define OS_CODE 0x0f 154 #if defined(_BEOS_) || defined(RISCOS) 155 # define fdopen(fd,mode) NULL 158 #if (defined(_MSC_VER) && (_MSC_VER > 600)) && !defined __INTERIX 159 # if defined(_WIN32_WCE) 160 # define fdopen(fd,mode) NULL 161 # ifndef _PTRDIFF_T_DEFINED 162 typedef int ptrdiff_t;
163 # define _PTRDIFF_T_DEFINED 166 # define fdopen(fd,type) _fdopen(fd,type) 170 #if defined(__BORLANDC__) && !defined(MSDOS) 177 #if !defined(_WIN32) && \ 178 (!defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0) 186 # define OS_CODE 0x03 190 # define F_OPEN(name, mode) fopen((name), (mode)) 195 #if defined(pyr) || defined(Z_SOLO) 198 #if defined(SMALL_MEDIUM) && !defined(_MSC_VER) && !defined(__SC__) 205 #if defined(STDC) && !defined(HAVE_MEMCPY) && !defined(NO_MEMCPY) 210 # define zmemcpy _fmemcpy 211 # define zmemcmp _fmemcmp 212 # define zmemzero(dest, len) _fmemset(dest, 0, len) 214 # define zmemcpy memcpy 215 # define zmemcmp memcmp 216 # define zmemzero(dest, len) memset(dest, 0, len) 225 # define Assert(cond,msg) 230 # define Tracecv(c,x) 238 #define ZALLOC(strm, items, size) \ 239 (*((strm)->zalloc))((strm)->opaque, (items), (size)) 240 #define ZFREE(strm, addr) (*((strm)->zfree))((strm)->opaque, (voidpf)(addr)) 241 #define TRY_FREE(s, p) {if (p) ZFREE(s, p);} 244 #define ZSWAP32(q) ((((q) >> 24) & 0xff) + (((q) >> 8) & 0xff00) + \ 245 (((q) & 0xff00) << 8) + (((q) & 0xff) << 24)) voidpf ZLIB_INTERNAL zcalloc(voidpf opaque, unsigned items, unsigned size)
Definition: zutil.c:144
Byte FAR Bytef
Definition: zconf.h:340
const GLvoid * ptr
Definition: nx_glsym.h:242
char z_errmsg[10][21]
Definition: zutil.c:13
GLenum GLsizei len
Definition: glext.h:7389
GLsizeiptr size
Definition: glext.h:6559
Byte FAR * voidpf
Definition: zconf.h:353
#define ZLIB_INTERNAL
Definition: adler32.c:8
static int block
Definition: psp2.c:31
#define z_off_t
Definition: zconf.h:444
GLsizei GLsizei GLchar * source
Definition: glext.h:6688
void ZLIB_INTERNAL zcfree(voidpf opaque, voidpf ptr)
Definition: zutil.c:151
#define FAR
Definition: zconf.h:327
unsigned int uInt
Definition: zconf.h:333
unsigned long uLong
Definition: zconf.h:334