# endif
#endif
-#if ( defined(ZLIB_CONST) || defined(__cplusplus) ) && !defined(z_const)
+#if defined(ZLIB_CONST) && !defined(z_const)
# define z_const const
#else
# define z_const
#if !defined(Z_U4) && !defined(Z_SOLO) && defined(STDC)
# include <limits.h>
-# if (UINT_MAX == 4294967295)
+# if (UINT_MAX == 0xffffffffUL)
# define Z_U4 unsigned
-# elif (ULONG_MAX == 4294967295)
+# elif (ULONG_MAX == 0xffffffffUL)
# define Z_U4 unsigned long
-# elif (USHRT_MAX == 4294967295)
+# elif (USHRT_MAX == 0xffffffffUL)
# define Z_U4 unsigned short
# endif
#endif