X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1f0299c17dc878540bf190c290392db241b425ad..fa1c12bdd76acc21ddb45b90bb53b2f58aed946d:/src/zlib/crc32.c diff --git a/src/zlib/crc32.c b/src/zlib/crc32.c index 52d9cb1f44..4900394577 100644 --- a/src/zlib/crc32.c +++ b/src/zlib/crc32.c @@ -1,6 +1,6 @@ /* crc32.c -- compute the CRC-32 of a data stream * Copyright (C) 1995-1998 Mark Adler - * 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$ */ @@ -51,7 +51,7 @@ local void make_crc_table() poly = 0L; for (n = 0; n < sizeof(p)/sizeof(Byte); n++) poly |= 1L << (31 - p[n]); - + for (n = 0; n < 256; n++) { c = (uLong)n; @@ -139,10 +139,14 @@ const uLongf * ZEXPORT get_crc_table() #define DO8(buf) DO4(buf); DO4(buf); /* ========================================================================= */ +#if defined(__VISAGECPP__) /* Visualage can't handle this antiquated interface */ +uLong ZEXPORT crc32(uLong crc, const Bytef* buf, uInt len) +#else uLong ZEXPORT crc32(crc, buf, len) uLong crc; const Bytef *buf; uInt len; +#endif { if (buf == Z_NULL) return 0L; #ifdef DYNAMIC_CRC_TABLE