X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c801d85f158c4cba50b588807daabdcbd0ed3853..50c375d311ac4cefbf1ae1d11e19c9e7c00a873e:/src/zlib/uncompr.c?ds=sidebyside diff --git a/src/zlib/uncompr.c b/src/zlib/uncompr.c index d103321378..1de520634a 100644 --- a/src/zlib/uncompr.c +++ b/src/zlib/uncompr.c @@ -1,11 +1,11 @@ /* uncompr.c -- decompress a memory buffer * Copyright (C) 1995-1998 Jean-loup Gailly. - * For conditions of distribution and use, see copyright notice in zlib.h + * For conditions of distribution and use, see copyright notice in zlib.h */ /* @(#) $Id$ */ -#include "zlib.h" +#include "../zlib/zlib.h" /* =========================================================================== Decompresses the source buffer into the destination buffer. sourceLen is @@ -22,11 +22,15 @@ enough memory, Z_BUF_ERROR if there was not enough room in the output buffer, or Z_DATA_ERROR if the input data was corrupted. */ +#if defined(__VISAGECPP__) // Visual game can't handle this antiquated interface +int ZEXPORT uncompress (Bytef* dest, uLongf* destLen, const Bytef* source, uLong sourceLen) +#else int ZEXPORT uncompress (dest, destLen, source, sourceLen) Bytef *dest; uLongf *destLen; const Bytef *source; uLong sourceLen; +#endif { z_stream stream; int err;