Skip to content

Commit

Permalink
[Compat] Don't use uint32_t for z_crc_t
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
mtl1979 authored and Dead2 committed Sep 26, 2022
1 parent ece74ee commit 6057002
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zconf.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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
Expand Down

0 comments on commit 6057002

Please sign in to comment.