From: Mark Adler Date: Sat, 1 Oct 2011 17:16:04 +0000 (-0700) Subject: Include zconf.h for windows large file support. X-Git-Tag: v1.2.5.2~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=64eccafa7869de5d09c1edd1aebbf8fa00d2d7d4;p=thirdparty%2Fzlib-ng.git Include zconf.h for windows large file support. --- diff --git a/zconf.h b/zconf.h index 1c06556ef..c8c2aaadd 100644 --- a/zconf.h +++ b/zconf.h @@ -412,11 +412,15 @@ typedef uLong FAR uLongf; # define z_off_t long #endif -#if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0 +#if !defined(_WIN32) && (defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0) # define z_off64_t off64_t #else +# if defined(_WIN32) +# define z_off64_t __int64 +# else # define z_off64_t z_off_t #endif +#endif #if defined(__OS400__) # define NO_vsnprintf