From 01253ecd7e0a01d311670f2d03c61b82fc12d338 Mon Sep 17 00:00:00 2001 From: Milan Bulat Date: Mon, 9 Oct 2023 17:04:51 +0400 Subject: Make the existence of gz_intmax() unconditional. gz_intmax() is noted in zlib.map. This assures it's always there. --- gzguts.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'gzguts.h') diff --git a/gzguts.h b/gzguts.h index f937504..adc2b34 100644 --- a/gzguts.h +++ b/gzguts.h @@ -210,9 +210,5 @@ char ZLIB_INTERNAL *gz_strwinerror(DWORD error); /* GT_OFF(x), where x is an unsigned value, is true if x > maximum z_off64_t value -- needed when comparing unsigned to z_off64_t, which is signed (possible z_off64_t types off_t, off64_t, and long are all signed) */ -#ifdef INT_MAX -# define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > INT_MAX) -#else unsigned ZLIB_INTERNAL gz_intmax(void); -# define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax()) -#endif +#define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax()) -- cgit v1.2.3-55-g6feb