23 #ifndef _ZLIBIOAPI64_H
24 #define _ZLIBIOAPI64_H
26 #if (!defined(_WIN32)) && (!defined(WIN32))
31 #ifndef __USE_FILE_OFFSET64
32 #define __USE_FILE_OFFSET64
34 #ifndef __USE_LARGEFILE64
35 #define __USE_LARGEFILE64
37 #ifndef _LARGEFILE64_SOURCE
38 #define _LARGEFILE64_SOURCE
40 #ifndef _FILE_OFFSET_BIT
41 #define _FILE_OFFSET_BIT 64
49 #if defined(USE_FILE32API)
51 #define ftello64 ftell
52 #define fseeko64 fseek
56 #if (_MSC_VER >= 1400) && (!(defined(NO_MSCVER_FILE64_FUNC)))
57 #define ftello64 _ftelli64
58 #define fseeko64 _fseeki64
60 #define ftello64 ftell
61 #define fseeko64 fseek
77 #ifdef HAVE_MINIZIP64_CONF_H
82 #ifdef HAVE_64BIT_INT_CUSTOM
83 typedef 64BIT_INT_CUSTOM_TYPE
ZPOS64_T;
91 #if defined(_MSC_VER) || defined(__BORLANDC__)
109 #define ZLIB_FILEFUNC_SEEK_CUR (1)
110 #define ZLIB_FILEFUNC_SEEK_END (2)
111 #define ZLIB_FILEFUNC_SEEK_SET (0)
113 #define ZLIB_FILEFUNC_MODE_READ (1)
114 #define ZLIB_FILEFUNC_MODE_WRITE (2)
115 #define ZLIB_FILEFUNC_MODE_READWRITEFILTER (3)
117 #define ZLIB_FILEFUNC_MODE_EXISTING (4)
118 #define ZLIB_FILEFUNC_MODE_CREATE (8)
122 #if (defined(WIN32) || defined(_WIN32) || defined (WINDOWS) || defined (_WINDOWS)) && defined(CALLBACK) && defined (USEWINDOWS_CALLBACK)
123 #define ZCALLBACK CALLBACK
132 typedef voidpf (
ZCALLBACK *open_file_func)
OF((voidpf opaque, voidpf file,
int mode));
133 typedef uLong (
ZCALLBACK *read_file_func)
OF((voidpf opaque, voidpf stream,
void* buf, uLong size));
134 typedef uLong (
ZCALLBACK *write_file_func)
OF((voidpf opaque, voidpf stream,
const void* buf, uLong size));
135 typedef int (
ZCALLBACK *close_file_func)
OF((voidpf opaque, voidpf stream));
136 typedef int (
ZCALLBACK *testerror_file_func)
OF((voidpf opaque, voidpf stream));
138 typedef uLong (
ZCALLBACK *tell_file_func)
OF((voidpf opaque, voidpf stream));
139 typedef int (
ZCALLBACK *seek_file_func)
OF((voidpf opaque, voidpf stream, uLong offset,
int origin));
156 typedef int (
ZCALLBACK *seek64_file_func)
OF((voidpf opaque, voidpf stream,
ZPOS64_T offset,
int origin));
157 typedef voidpf (
ZCALLBACK *open64_file_func)
OF((voidpf opaque, voidpf file,
int mode));
185 #define ZREAD64(filefunc,filestream,buf,size) ((*((filefunc).zfile_func64.zread_file)) ((filefunc).zfile_func64.opaque,filestream,buf,size))
186 #define ZWRITE64(filefunc,filestream,buf,size) ((*((filefunc).zfile_func64.zwrite_file)) ((filefunc).zfile_func64.opaque,filestream,buf,size))
189 #define ZCLOSE64(filefunc,filestream) ((*((filefunc).zfile_func64.zclose_file)) ((filefunc).zfile_func64.opaque,filestream))
190 #define ZFAKECLOSE64(filefunc,filestream) ((*((filefunc).zfile_func64.zfakeclose_file)) ((filefunc).zfile_func64.opaque,filestream))
191 #define ZERROR64(filefunc,filestream) ((*((filefunc).zfile_func64.zerror_file)) ((filefunc).zfile_func64.opaque,filestream))
199 #define ZOPEN64(filefunc,filename,mode) (call_zopen64((&(filefunc)),(filename),(mode)))
200 #define ZTELL64(filefunc,filestream) (call_ztell64((&(filefunc)),(filestream)))
201 #define ZSEEK64(filefunc,filestream,pos,mode) (call_zseek64((&(filefunc)),(filestream),(pos),(mode)))
seek_file_func zseek_file
close_file_func zclose_file
read_file_func zread_file
void fill_qiodevice64_filefunc(zlib_filefunc64_def *pzlib_filefunc_def)
seek64_file_func zseek64_file
testerror_file_func zerror_file
tell64_file_func ztell64_file
close_file_func zclose_file
tell_file_func ztell_file
open_file_func zopen_file
testerror_file_func zerror_file
voidpf call_zopen64(const zlib_filefunc64_32_def *pfilefunc, voidpf file, int mode)
zlib_filefunc64_def zfile_func64
tell_file_func ztell32_file
open_file_func zopen32_file
read_file_func zread_file
void fill_zlib_filefunc64_32_def_from_filefunc32(zlib_filefunc64_32_def *p_filefunc64_32, const zlib_filefunc_def *p_filefunc32)
void fill_qiodevice_filefunc(zlib_filefunc_def *pzlib_filefunc_def)
struct zlib_filefunc_def_s zlib_filefunc_def
unsigned long long int ZPOS64_T
struct zlib_filefunc64_def_s zlib_filefunc64_def
write_file_func zwrite_file
write_file_func zwrite_file
close_file_func zfakeclose_file
struct zlib_filefunc64_32_def_s zlib_filefunc64_32_def
seek_file_func zseek32_file
ZPOS64_T call_ztell64(const zlib_filefunc64_32_def *pfilefunc, voidpf filestream)
int call_zseek64(const zlib_filefunc64_32_def *pfilefunc, voidpf filestream, ZPOS64_T offset, int origin)
open64_file_func zopen64_file