13#if defined(_WIN32) && (!(defined(_CRT_SECURE_NO_WARNINGS)))
14 #define _CRT_SECURE_NO_WARNINGS
17#if defined(__APPLE__) || defined(IOAPI_NO_64)
19#define FOPEN_FUNC(filename, mode) fopen(filename, mode)
20#define FTELLO_FUNC(stream) ftello(stream)
21#define FSEEKO_FUNC(stream, offset, origin) fseeko(stream, offset, origin)
23#define FOPEN_FUNC(filename, mode) fopen64(filename, mode)
24#define FTELLO_FUNC(stream) ftello64(stream)
25#define FSEEKO_FUNC(stream, offset, origin) fseeko64(stream, offset, origin)
48 if (offsetTruncated !=
offset)
62 if ((tell_uLong) ==
MAXU32)
98 const char* mode_fopen =
NULL;
117 const char* mode_fopen =
NULL;
237 pzlib_filefunc_def->
zopen_file = fopen_file_func;
238 pzlib_filefunc_def->zread_file = fread_file_func;
239 pzlib_filefunc_def->zwrite_file = fwrite_file_func;
240 pzlib_filefunc_def->ztell_file = ftell_file_func;
241 pzlib_filefunc_def->zseek_file = fseek_file_func;
242 pzlib_filefunc_def->zclose_file = fclose_file_func;
243 pzlib_filefunc_def->zerror_file = ferror_file_func;
244 pzlib_filefunc_def->opaque =
NULL;
250 pzlib_filefunc_def->
zread_file = fread_file_func;
251 pzlib_filefunc_def->
zwrite_file = fwrite_file_func;
254 pzlib_filefunc_def->
zclose_file = fclose_file_func;
255 pzlib_filefunc_def->
zerror_file = ferror_file_func;
void fill_zlib_filefunc64_32_def_from_filefunc32(zlib_filefunc64_32_def *p_filefunc64_32, const zlib_filefunc_def *p_filefunc32)
#define FSEEKO_FUNC(stream, offset, origin)
#define FOPEN_FUNC(filename, mode)
long call_zseek64(const zlib_filefunc64_32_def *pfilefunc, voidpf filestream, ZPOS64_T offset, int origin)
void fill_fopen64_filefunc(zlib_filefunc64_def *pzlib_filefunc_def)
void fill_fopen_filefunc(zlib_filefunc_def *pzlib_filefunc_def)
voidpf call_zopen64(const zlib_filefunc64_32_def *pfilefunc, const void *filename, int mode)
ZPOS64_T call_ztell64(const zlib_filefunc64_32_def *pfilefunc, voidpf filestream)
#define FTELLO_FUNC(stream)
#define ZLIB_FILEFUNC_MODE_READWRITEFILTER
unsigned __int64 ZPOS64_T
#define ZLIB_FILEFUNC_MODE_EXISTING
#define ZLIB_FILEFUNC_SEEK_CUR
#define ZLIB_FILEFUNC_SEEK_SET
#define ZLIB_FILEFUNC_MODE_CREATE
#define ZLIB_FILEFUNC_SEEK_END
#define ZLIB_FILEFUNC_MODE_READ
seek_file_func zseek32_file
zlib_filefunc64_def zfile_func64
open_file_func zopen32_file
tell_file_func ztell32_file
write_file_func zwrite_file
open64_file_func zopen64_file
read_file_func zread_file
tell64_file_func ztell64_file
close_file_func zclose_file
seek64_file_func zseek64_file
testerror_file_func zerror_file
seek_file_func zseek_file
open_file_func zopen_file
testerror_file_func zerror_file
write_file_func zwrite_file
read_file_func zread_file
close_file_func zclose_file
tell_file_func ztell_file