diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-03-15 21:32:22 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-03-15 21:32:22 +0000 |
commit | a308ef324313d93020c56a2e6412f8dacd654cb0 (patch) | |
tree | 109402b7a9def62cce2006673d65e55ac5b4cdd0 /lib/libz/gzlib.c | |
parent | 148eec0714288712b20e69083b25ba49a940d513 (diff) |
zlib: sync with upstream
More Windows #ifdef shuffling. Only one change relevant for OpenBSD:
Make deflateBound() more conservative and handle Z_STREAM_END.
Diffstat (limited to 'lib/libz/gzlib.c')
-rw-r--r-- | lib/libz/gzlib.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libz/gzlib.c b/lib/libz/gzlib.c index e485a27bf6d..baa3e79d41a 100644 --- a/lib/libz/gzlib.c +++ b/lib/libz/gzlib.c @@ -5,11 +5,9 @@ #include "gzguts.h" -#if defined(UNDER_CE) -# define LSEEK _wcelseek -#elif defined(__DJGPP__) +#if defined(__DJGPP__) # define LSEEK llseek -#elif defined(_WIN32) && !defined(__BORLANDC__) +#elif defined(_WIN32) && !defined(__BORLANDC__) && !defined(UNDER_CE) # define LSEEK _lseeki64 #elif defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0 # define LSEEK lseek64 |