summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMika Lindqvist <postmaster@raasu.org>2022-09-11 16:15:10 +0300
committerHans Kristian Rosbach <hk-github@circlestorm.org>2023-03-17 21:27:56 +0100
commit01759b4f32a8b2c791335deaac81a71dc29a7a03 (patch)
tree1239e59291665e99ab8e0264f400d89f080875d8
parent8ebb35ac232c9fb35eeaa08f67612398e54ce83a (diff)
[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
-rw-r--r--zconf.h.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/zconf.h.in b/zconf.h.in
index a420c50..fec44c0 100644
--- a/zconf.h.in
+++ b/zconf.h.in
@@ -114,7 +114,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;
@@ -130,7 +130,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