aboutsummaryrefslogtreecommitdiff
path: root/gzguts.h
diff options
context:
space:
mode:
authorMilan Bulat <milan@peer.inc>2023-10-09 17:04:51 +0400
committerMark Adler <madler@alumni.caltech.edu>2024-01-17 16:07:14 -0800
commit01253ecd7e0a01d311670f2d03c61b82fc12d338 (patch)
tree0f50fa36e7b5426cc5f31925c31ae14696edd959 /gzguts.h
parent6201f893846bfd22faf060e84a3bb7bfc0e61761 (diff)
downloadzlib-01253ecd7e0a01d311670f2d03c61b82fc12d338.tar.gz
zlib-01253ecd7e0a01d311670f2d03c61b82fc12d338.tar.bz2
zlib-01253ecd7e0a01d311670f2d03c61b82fc12d338.zip
Make the existence of gz_intmax() unconditional.
gz_intmax() is noted in zlib.map. This assures it's always there.
Diffstat (limited to 'gzguts.h')
-rw-r--r--gzguts.h6
1 files changed, 1 insertions, 5 deletions
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);
210/* GT_OFF(x), where x is an unsigned value, is true if x > maximum z_off64_t 210/* GT_OFF(x), where x is an unsigned value, is true if x > maximum z_off64_t
211 value -- needed when comparing unsigned to z_off64_t, which is signed 211 value -- needed when comparing unsigned to z_off64_t, which is signed
212 (possible z_off64_t types off_t, off64_t, and long are all signed) */ 212 (possible z_off64_t types off_t, off64_t, and long are all signed) */
213#ifdef INT_MAX
214# define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > INT_MAX)
215#else
216unsigned ZLIB_INTERNAL gz_intmax(void); 213unsigned ZLIB_INTERNAL gz_intmax(void);
217# define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax()) 214#define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax())
218#endif