#ifndef _Z_UTIL_H
#define _Z_UTIL_H
-#include "zlib.h"
+#include "../zlib/zlib.h"
#ifdef STDC
# include <stddef.h>
#endif
/* Diagnostic functions */
-#ifdef DEBUG
+#ifdef __WXDEBUG__
# include <stdio.h>
extern int z_verbose;
extern void z_error OF((char *m));
#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))