From: Mika Lindqvist Date: Sun, 11 Sep 2022 13:15:10 +0000 (+0300) Subject: [Compat] Don't use uint32_t for z_crc_t X-Git-Tag: 2.1.0-beta1~161 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6057002d4832457b86eb38d7ae95d661aeeca464;p=thirdparty%2Fzlib-ng.git [Compat] Don't use uint32_t for z_crc_t * We don't include stdint.h as it must be included before stdarg.h and other headers might include stdarg.h before us See #1342 --- diff --git a/zconf.h.in b/zconf.h.in index c82a8ad00..82ee08032 100644 --- a/zconf.h.in +++ b/zconf.h.in @@ -111,7 +111,7 @@ # define ZEXPORTVA Z_EXPORTVA #endif -/* Fallback for something that includes us. */ +/* Legacy zlib typedefs for backwards compatibility. Don't assume stdint.h is defined. */ typedef unsigned char Byte; typedef Byte Bytef; @@ -127,7 +127,7 @@ typedef void const *voidpc; typedef void *voidpf; typedef void *voidp; -typedef uint32_t z_crc_t; +typedef unsigned int z_crc_t; #ifdef HAVE_UNISTD_H /* may be set to #if 1 by configure/cmake/etc */ # define Z_HAVE_UNISTD_H