X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c6cdbc3d7586559d8c181acdd853fb1ec3c0e6f4..b77b87881bae2e6306366d79e7fe160334b3d4a2:/src/zlib/zutil.h diff --git a/src/zlib/zutil.h b/src/zlib/zutil.h index 06543084cd..1415c44225 100644 --- a/src/zlib/zutil.h +++ b/src/zlib/zutil.h @@ -29,7 +29,7 @@ #ifndef local # define local static #endif -/* compile with -Dlocal if your __WXDEBUG__ger can't find static symbols */ +/* compile with -Dlocal if your debugger can't find static symbols */ typedef unsigned char uch; typedef uch FAR uchf; @@ -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))