From 90c677bc25f7ebf8be95ab0b4fe752c095417600 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Fri, 22 Mar 2024 22:25:40 -0700 Subject: [PATCH] Use long long offsets for MinGW. --- zconf.h | 2 ++ zconf.h.cmakein | 2 ++ zconf.h.in | 2 ++ 3 files changed, 6 insertions(+) diff --git a/zconf.h b/zconf.h index fbe7a7950..ea3b6d685 100644 --- a/zconf.h +++ b/zconf.h @@ -511,6 +511,8 @@ typedef uLong FAR uLongf; #if !defined(_WIN32) && defined(Z_LARGE64) # define z_off64_t off64_t +#elif defined(__MINGW32__) +# define z_off64_t long long #elif defined(_WIN32) && !defined(__GNUC__) # define z_off64_t __int64 #elif defined(__GO32__) diff --git a/zconf.h.cmakein b/zconf.h.cmakein index 96e9296a9..0eced14f3 100644 --- a/zconf.h.cmakein +++ b/zconf.h.cmakein @@ -513,6 +513,8 @@ typedef uLong FAR uLongf; #if !defined(_WIN32) && defined(Z_LARGE64) # define z_off64_t off64_t +#elif defined(__MINGW32__) +# define z_off64_t long long #elif defined(_WIN32) && !defined(__GNUC__) # define z_off64_t __int64 #elif defined(__GO32__) diff --git a/zconf.h.in b/zconf.h.in index fbe7a7950..ea3b6d685 100644 --- a/zconf.h.in +++ b/zconf.h.in @@ -511,6 +511,8 @@ typedef uLong FAR uLongf; #if !defined(_WIN32) && defined(Z_LARGE64) # define z_off64_t off64_t +#elif defined(__MINGW32__) +# define z_off64_t long long #elif defined(_WIN32) && !defined(__GNUC__) # define z_off64_t __int64 #elif defined(__GO32__)