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
30 # define _POSIX_SOURCE
38 #if defined(__TURBOC__) || defined(_MSC_VER) || defined(_WIN32)
42 #if defined(_WIN32) || defined(__CYGWIN__)
54 # define NO_GZCOMPRESS
57 #if defined(STDC99) || (defined(__TURBOC__) && __TURBOC__ >= 0x550)
58 # ifndef HAVE_VSNPRINTF
59 # define HAVE_VSNPRINTF
63 #if defined(__CYGWIN__)
64 # ifndef HAVE_VSNPRINTF
65 # define HAVE_VSNPRINTF
69 #if defined(MSDOS) && defined(__BORLANDC__) && (BORLANDC > 0x410)
70 # ifndef HAVE_VSNPRINTF
71 # define HAVE_VSNPRINTF
75 #ifndef HAVE_VSNPRINTF
86 # if !defined(vsnprintf) && !defined(NO_vsnprintf)
87 # if !defined(_MSC_VER) || ( defined(_MSC_VER) && _MSC_VER < 1500 )
88 # define vsnprintf _vsnprintf
102 # define NO_vsnprintf
109 #if defined(_MSC_VER) && _MSC_VER < 1900
110 # define snprintf _snprintf
114 # define local static
122 extern voidp malloc
OF((uInt size));
123 extern void free
OF((voidpf ptr));
128 # include <windows.h>
129 # define zstrerror() gz_strwinerror((DWORD)GetLastError())
133 # define zstrerror() strerror(errno)
135 # define zstrerror() "stdio error (consult errno)"
140 #if !defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0
148 #if MAX_MEM_LEVEL >= 8
149 # define DEF_MEM_LEVEL 8
151 # define DEF_MEM_LEVEL MAX_MEM_LEVEL
156 #define GZBUFSIZE 8192
161 #define GZ_WRITE 31153
214 # define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > INT_MAX)
217 # define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax())