diff options
author | Milan Bulat <milan@peer.inc> | 2023-10-09 17:04:51 +0400 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2024-01-17 16:07:14 -0800 |
commit | 01253ecd7e0a01d311670f2d03c61b82fc12d338 (patch) | |
tree | 0f50fa36e7b5426cc5f31925c31ae14696edd959 /gzguts.h | |
parent | 6201f893846bfd22faf060e84a3bb7bfc0e61761 (diff) | |
download | zlib-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.h | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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 | ||
216 | unsigned ZLIB_INTERNAL gz_intmax(void); | 213 | unsigned 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 | ||