Handle standalone code.
This commit is contained in:
parent
c3ad0bdd7e
commit
eb31298ab3
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: zlib.h,v 1.6 2022/10/15 19:49:32 christos Exp $ */
|
/* $NetBSD: zlib.h,v 1.7 2022/10/15 23:21:34 christos Exp $ */
|
||||||
|
|
||||||
/* zlib.h -- interface of the 'zlib' general purpose compression library
|
/* zlib.h -- interface of the 'zlib' general purpose compression library
|
||||||
version 1.2.13, October 13th, 2022
|
version 1.2.13, October 13th, 2022
|
||||||
|
@ -1726,7 +1726,9 @@ ZEXTERN uLong ZEXPORT adler32_combine OF((uLong adler1, uLong adler2,
|
||||||
negative, the result has no meaning or utility.
|
negative, the result has no meaning or utility.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if !defined(_KERNEL) && !defined(_STANDALONE)
|
||||||
ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
|
ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
|
||||||
|
#endif
|
||||||
/*
|
/*
|
||||||
Update a running CRC-32 with the bytes buf[0..len-1] and return the
|
Update a running CRC-32 with the bytes buf[0..len-1] and return the
|
||||||
updated CRC-32. A CRC-32 value is in the range of a 32-bit unsigned integer.
|
updated CRC-32. A CRC-32 value is in the range of a 32-bit unsigned integer.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: zutil.h,v 1.6 2022/10/15 19:49:32 christos Exp $ */
|
/* $NetBSD: zutil.h,v 1.7 2022/10/15 23:21:34 christos Exp $ */
|
||||||
|
|
||||||
/* zutil.h -- internal interface and configuration of the compression library
|
/* zutil.h -- internal interface and configuration of the compression library
|
||||||
* Copyright (C) 1995-2022 Jean-loup Gailly, Mark Adler
|
* Copyright (C) 1995-2022 Jean-loup Gailly, Mark Adler
|
||||||
|
@ -49,6 +49,13 @@ typedef ush FAR ushf;
|
||||||
typedef unsigned long ulg;
|
typedef unsigned long ulg;
|
||||||
|
|
||||||
#if !defined(Z_U8) && !defined(Z_SOLO) && defined(STDC)
|
#if !defined(Z_U8) && !defined(Z_SOLO) && defined(STDC)
|
||||||
|
# if defined(_KERNEL) || defined(_STANDALONE)
|
||||||
|
# ifdef _LP64
|
||||||
|
# define Z_U8 unsigned long
|
||||||
|
# else
|
||||||
|
# define Z_U8 unsigned long long
|
||||||
|
# endif
|
||||||
|
# else
|
||||||
# include <limits.h>
|
# include <limits.h>
|
||||||
# if (ULONG_MAX == 0xffffffffffffffff)
|
# if (ULONG_MAX == 0xffffffffffffffff)
|
||||||
# define Z_U8 unsigned long
|
# define Z_U8 unsigned long
|
||||||
|
@ -57,6 +64,7 @@ typedef unsigned long ulg;
|
||||||
# elif (UINT_MAX == 0xffffffffffffffff)
|
# elif (UINT_MAX == 0xffffffffffffffff)
|
||||||
# define Z_U8 unsigned
|
# define Z_U8 unsigned
|
||||||
# endif
|
# endif
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
|
extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
|
||||||
|
|
Loading…
Reference in New Issue