aboutsummaryrefslogtreecommitdiff
path: root/zconf.h.cmakein
diff options
context:
space:
mode:
Diffstat (limited to 'zconf.h.cmakein')
-rw-r--r--zconf.h.cmakein23
1 files changed, 23 insertions, 0 deletions
diff --git a/zconf.h.cmakein b/zconf.h.cmakein
index 4ade487..b6ca59a 100644
--- a/zconf.h.cmakein
+++ b/zconf.h.cmakein
@@ -390,6 +390,29 @@ typedef uLong FAR uLongf;
390 typedef Byte *voidp; 390 typedef Byte *voidp;
391#endif 391#endif
392 392
393/* ./configure may #define Z_U4 here */
394
395#if !defined(Z_U4) && !defined(Z_SOLO) && defined(STDC)
396# include <limits.h>
397# if (UINT_MAX == 0xffffffffUL)
398# define Z_U4 unsigned
399# else
400# if (ULONG_MAX == 0xffffffffUL)
401# define Z_U4 unsigned long
402# else
403# if (USHRT_MAX == 0xffffffffUL)
404# define Z_U4 unsigned short
405# endif
406# endif
407# endif
408#endif
409
410#ifdef Z_U4
411 typedef Z_U4 z_crc_t;
412#else
413 typedef unsigned long z_crc_t;
414#endif
415
393#ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */ 416#ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */
394# define Z_HAVE_UNISTD_H 417# define Z_HAVE_UNISTD_H
395#endif 418#endif