projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix for assert when setting tooltip for a readonly combo
[wxWidgets.git]
/
src
/
zlib
/
adler32.c
diff --git
a/src/zlib/adler32.c
b/src/zlib/adler32.c
index 16cf9a703f7cdedc6715db64715254780ad6414d..ce12383f4b5b40ee6eb557f627657354289115ae 100644
(file)
--- a/
src/zlib/adler32.c
+++ b/
src/zlib/adler32.c
@@
-1,11
+1,11
@@
/* adler32.c -- compute the Adler-32 checksum of a data stream
* Copyright (C) 1995-1998 Mark Adler
/* adler32.c -- compute the Adler-32 checksum 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$ */
*/
/* @(#) $Id$ */
-#include "zlib.h"
+#include "
../zlib/
zlib.h"
#define BASE 65521L /* largest prime smaller than 65536 */
#define NMAX 5552
#define BASE 65521L /* largest prime smaller than 65536 */
#define NMAX 5552
@@
-18,10
+18,14
@@
#define DO16(buf) DO8(buf,0); DO8(buf,8);
/* ========================================================================= */
#define DO16(buf) DO8(buf,0); DO8(buf,8);
/* ========================================================================= */
+#if defined(__VISAGECPP__) /* Visualage can't handle this antiquated interface */
+uLong ZEXPORT adler32 (uLong adler, const Bytef* buf, uInt len)
+#else
uLong ZEXPORT adler32(adler, buf, len)
uLong adler;
const Bytef *buf;
uInt len;
uLong ZEXPORT adler32(adler, buf, len)
uLong adler;
const Bytef *buf;
uInt len;
+#endif
{
unsigned long s1 = adler & 0xffff;
unsigned long s2 = (adler >> 16) & 0xffff;
{
unsigned long s1 = adler & 0xffff;
unsigned long s2 = (adler >> 16) & 0xffff;