diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2012-03-19 12:51:31 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2012-03-19 12:51:31 +0000 |
commit | 25adbdabb47499fe641c7bd9595024ff82667058 (patch) | |
tree | 4200bb5e746bc1c0606de615ec99f0a247d4d9ba /src/htszlib.h | |
parent | ad5b7acc19290ff91e0f42a0de448a26760fcf99 (diff) |
httrack 3.30.1
Diffstat (limited to 'src/htszlib.h')
-rw-r--r-- | src/htszlib.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/htszlib.h b/src/htszlib.h index 63310b8..173d966 100644 --- a/src/htszlib.h +++ b/src/htszlib.h @@ -43,6 +43,27 @@ Please visit our Website: http://www.httrack.com int hts_zunpack(char* filename,char* newfile); +#define gzopen hts_ptrfunc_gzopen +#define gzread hts_ptrfunc_gzread +#define gzclose hts_ptrfunc_gzclose + +#ifdef _WIN32 +#define ZEXPORT WINAPI +#else +#define ZEXPORT +#endif + +typedef void* voidp; +typedef voidp gzFile; +typedef gzFile (ZEXPORT *t_gzopen)(const char *path, const char *mode); +typedef int (ZEXPORT *t_gzread)(gzFile file, voidp buf, unsigned len); +typedef int (ZEXPORT *t_gzclose)(gzFile file); + +extern int gz_is_available; +extern t_gzopen gzopen; +extern t_gzread gzread; +extern t_gzclose gzclose; + #endif #endif |