6 #ifdef _LARGEFILE64_SOURCE
7 # ifndef _LARGEFILE_SOURCE
8 # define _LARGEFILE_SOURCE 1
10 # ifdef _FILE_OFFSET_BITS
11 # undef _FILE_OFFSET_BITS
16 # define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
18 # define ZLIB_INTERNAL
34 #if defined(__TURBOC__) || defined(_MSC_VER) || defined(_WIN32)
46 # define NO_GZCOMPRESS
49 #if defined(STDC99) || (defined(__TURBOC__) && __TURBOC__ >= 0x550)
50 # ifndef HAVE_VSNPRINTF
51 # define HAVE_VSNPRINTF
55 #if defined(__CYGWIN__)
56 # ifndef HAVE_VSNPRINTF
57 # define HAVE_VSNPRINTF
61 #if defined(MSDOS) && defined(__BORLANDC__) && (BORLANDC > 0x410)
62 # ifndef HAVE_VSNPRINTF
63 # define HAVE_VSNPRINTF
67 #ifndef HAVE_VSNPRINTF
78 # if !defined(vsnprintf) && !defined(NO_vsnprintf)
79 # if !defined(_MSC_VER) || ( defined(_MSC_VER) && _MSC_VER < 1500 )
80 # define vsnprintf _vsnprintf
102 #if defined(_MSC_VER) && _MSC_VER < 1900
103 # define snprintf _snprintf
107 # define local static
113 extern voidp malloc
OF((uInt size));
114 extern void free OF((voidpf ptr));
119 # include <windows.h>
120 # define zstrerror() gz_strwinerror((DWORD)GetLastError())
124 # define zstrerror() strerror(errno)
126 # define zstrerror() "stdio error (consult errno)"
131 #if !defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0
139 #if MAX_MEM_LEVEL >= 8
140 # define DEF_MEM_LEVEL 8
142 # define DEF_MEM_LEVEL MAX_MEM_LEVEL
147 #define GZBUFSIZE 8192
152 #define GZ_WRITE 31153
205 # define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > INT_MAX)
208 # define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax())
void ZLIB_INTERNAL gz_error(gz_statep state, int err, const char *msg)
z_off64_t ZEXPORT gzoffset64(gzFile file)
z_off64_t ZEXPORT gzseek64(gzFile file, z_off64_t offset, int whence)
gzFile ZEXPORT gzopen64(const char *path, const char *mode)
unsigned ZLIB_INTERNAL gz_intmax()
z_off64_t ZEXPORT gztell64(gzFile file)
static PROLOG_HANDLER error
voidpf alloc_func OF((voidpf opaque, uInt items, uInt size))