15 #pragma warning ( disable : 4996 )
17 #ifdef _LARGEFILE64_SOURCE
18 # ifndef _LARGEFILE_SOURCE
19 # define _LARGEFILE_SOURCE 1
21 # ifdef _FILE_OFFSET_BITS
22 # undef _FILE_OFFSET_BITS
26 #if defined(FGX_GZGUTS_H)
27 # define ZLIB_INTERNAL
29 #if ((__GNUC__-0) * 10 + __GNUC_MINOR__-0 >= 33) && !defined(NO_VIZ)
30 # define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
32 # define ZLIB_INTERNAL
46 # define NO_GZCOMPRESS
51 # define vsnprintf _vsnprintf
63 extern voidp malloc OF((uInt size));
64 extern void free OF((voidpf ptr));
70 # define zstrerror() gz_strwinerror((DWORD)GetLastError())
74 # define zstrerror() strerror(errno)
76 # define zstrerror() "stdio error (consult errno)"
81 #if !defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0
82 ZEXTERN gzFile ZEXPORT gzopen64 OF((
const char *,
const char *));
83 ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t,
int));
84 ZEXTERN z_off64_t ZEXPORT gztell64 OF((gzFile));
85 ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile));
89 #define GZBUFSIZE 8192
94 #define GZ_WRITE 31153
136 void ZLIB_INTERNAL gz_error OF((gz_statep,
int,
const char *));
138 char ZLIB_INTERNAL *gz_strwinerror OF((DWORD error));
145 # define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > INT_MAX)
147 unsigned ZLIB_INTERNAL gz_intmax OF((
void));
148 # define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax())