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 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 132 ZEXTERN
gzFile ZEXPORT gzopen64 OF((
const char *,
const char *));
133 ZEXTERN z_off64_t ZEXPORT gzseek64 OF((
gzFile, z_off64_t,
int));
134 ZEXTERN z_off64_t ZEXPORT gztell64 OF((
gzFile));
135 ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((
gzFile));
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 196 void ZLIB_INTERNAL gz_error OF((gz_statep,
int,
const char *));
198 char ZLIB_INTERNAL *gz_strwinerror OF((DWORD error));
205 # define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > INT_MAX) 207 unsigned ZLIB_INTERNAL gz_intmax OF((
void));
208 # define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax())