X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c801d85f158c4cba50b588807daabdcbd0ed3853..c6ac78a61edd08ccfd0f1e5b37ee48ceb7bfa474:/src/zlib/zutil.h?ds=sidebyside diff --git a/src/zlib/zutil.h b/src/zlib/zutil.h index 5e403d1d78..1415c44225 100644 --- a/src/zlib/zutil.h +++ b/src/zlib/zutil.h @@ -13,7 +13,7 @@ #ifndef _Z_UTIL_H #define _Z_UTIL_H -#include "zlib.h" +#include "../zlib/zlib.h" #ifdef STDC # include @@ -188,7 +188,7 @@ extern const char *z_errmsg[10]; /* indexed by 2-zlib_error */ #endif /* Diagnostic functions */ -#ifdef DEBUG +#ifdef __WXDEBUG__ # include extern int z_verbose; extern void z_error OF((char *m)); @@ -208,10 +208,17 @@ extern const char *z_errmsg[10]; /* indexed by 2-zlib_error */ #endif +#if defined(__VISAGECPP__) +typedef uLong (ZEXPORT _Optlink *check_func) OF((uLong check, const Bytef *buf, + uInt len)); +voidpf _Optlink zcalloc OF((voidpf opaque, unsigned items, unsigned size)); +void _Optlink zcfree OF((voidpf opaque, voidpf ptr)); +#else typedef uLong (ZEXPORT *check_func) OF((uLong check, const Bytef *buf, uInt len)); voidpf zcalloc OF((voidpf opaque, unsigned items, unsigned size)); void zcfree OF((voidpf opaque, voidpf ptr)); +#endif #define ZALLOC(strm, items, size) \ (*((strm)->zalloc))((strm)->opaque, (items), (size))