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;
116 const char* mode_fopen =
NULL;
149 ret = ftell((FILE *)stream);
213 ret = fclose((FILE *)stream);
220 ret = ferror((FILE *)stream);
227 pzlib_filefunc_def->
zopen_file = fopen_file_func;
228 pzlib_filefunc_def->zread_file = fread_file_func;
229 pzlib_filefunc_def->zwrite_file = fwrite_file_func;
230 pzlib_filefunc_def->ztell_file = ftell_file_func;
231 pzlib_filefunc_def->zseek_file = fseek_file_func;
232 pzlib_filefunc_def->zclose_file = fclose_file_func;
233 pzlib_filefunc_def->zerror_file = ferror_file_func;
234 pzlib_filefunc_def->opaque =
NULL;
240 pzlib_filefunc_def->
zread_file = fread_file_func;
241 pzlib_filefunc_def->
zwrite_file = fwrite_file_func;
244 pzlib_filefunc_def->
zclose_file = fclose_file_func;
245 pzlib_filefunc_def->
zerror_file = ferror_file_func;
open_file_func zopen32_file
testerror_file_func zerror_file
testerror_file_func zerror_file
ZPOS64_T call_ztell64(const zlib_filefunc64_32_def *pfilefunc, voidpf filestream)
write_file_func zwrite_file
#define ZLIB_FILEFUNC_MODE_READWRITEFILTER
#define ZLIB_FILEFUNC_MODE_READ
GLenum GLuint GLenum GLsizei const GLchar * buf
write_file_func zwrite_file
seek_file_func zseek32_file
#define ZLIB_FILEFUNC_SEEK_CUR
close_file_func zclose_file
read_file_func zread_file
seek_file_func zseek_file
zlib_filefunc64_def zfile_func64
#define ZLIB_FILEFUNC_MODE_CREATE
unsigned long long int ZPOS64_T
#define FTELLO_FUNC(stream)
tell_file_func ztell_file
void fill_fopen64_filefunc(zlib_filefunc64_def *pzlib_filefunc_def)
#define ZLIB_FILEFUNC_MODE_EXISTING
close_file_func zclose_file
tell_file_func ztell32_file
open_file_func zopen_file
read_file_func zread_file
#define FOPEN_FUNC(filename, mode)
open64_file_func zopen64_file
#define ZLIB_FILEFUNC_SEEK_END
#define FSEEKO_FUNC(stream, offset, origin)
seek64_file_func zseek64_file
void fill_fopen_filefunc(zlib_filefunc_def *pzlib_filefunc_def)
#define ZLIB_FILEFUNC_SEEK_SET
voidpf call_zopen64(const zlib_filefunc64_32_def *pfilefunc, const void *filename, int mode)
long call_zseek64(const zlib_filefunc64_32_def *pfilefunc, voidpf filestream, ZPOS64_T offset, int origin)
void fill_zlib_filefunc64_32_def_from_filefunc32(zlib_filefunc64_32_def *p_filefunc64_32, const zlib_filefunc_def *p_filefunc32)
tell64_file_func ztell64_file