diff options
author | Mika Lindqvist <postmaster@raasu.org> | 2022-06-17 13:06:56 +0300 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2023-03-17 21:27:56 +0100 |
commit | 137eb946cb9593c1aa78ed9d0b91ee6d3cb6977f (patch) | |
tree | d4e453f78f3d66a9080f5e045f09f0792719c1a0 | |
parent | 87495d42a509b461c6cd3aa750cf562b931c0692 (diff) |
In compatibility mode, always define z_crc_t as uint32_t for backwards compatibility.
-rwxr-xr-x | configure | 1 | ||||
-rw-r--r-- | zconf-ng.h.in | 1 | ||||
-rw-r--r-- | zconf.h.in | 3 | ||||
-rw-r--r-- | zlib-ng.h | 2 | ||||
-rw-r--r-- | zlib.h | 1 |
5 files changed, 6 insertions, 2 deletions
@@ -878,6 +878,7 @@ echo >> configure.log # Check for ANSI C compliant compiler cat > $test.c <<EOF +#include <stdint.h> #include <stdio.h> #include <stdarg.h> #include "zconf${SUFFIX}.h" diff --git a/zconf-ng.h.in b/zconf-ng.h.in index 7d54668..2282fc2 100644 --- a/zconf-ng.h.in +++ b/zconf-ng.h.in @@ -119,7 +119,6 @@ typedef PTRDIFF_TYPE ptrdiff_t; #endif #include <sys/types.h> /* for off_t */ -#include <stdarg.h> /* for va_list */ #include <stddef.h> /* for wchar_t and NULL */ @@ -130,6 +130,8 @@ typedef void const *voidpc; typedef void *voidpf; typedef void *voidp; +typedef uint32_t z_crc_t; + #ifdef HAVE_UNISTD_H /* may be set to #if 1 by configure/cmake/etc */ # define Z_HAVE_UNISTD_H #endif @@ -139,7 +141,6 @@ typedef PTRDIFF_TYPE ptrdiff_t; #endif #include <sys/types.h> /* for off_t */ -#include <stdarg.h> /* for va_list */ #include <stddef.h> /* for wchar_t and NULL */ @@ -34,6 +34,8 @@ #endif #include <stdint.h> +#include <stdarg.h> + #include "zconf-ng.h" #ifndef ZCONFNG_H @@ -36,6 +36,7 @@ #include <stdint.h> #include <stdarg.h> + #include "zconf.h" #ifndef ZCONF_H |