diff --git a/zconf.h b/zconf.h index 04d2b52c8..b0c368c83 100644 --- a/zconf.h +++ b/zconf.h @@ -511,7 +511,7 @@ typedef uLong FAR uLongf; #if !defined(_WIN32) && defined(Z_LARGE64) # define z_off64_t off64_t -#elif defined(_WIN32) && !defined(__CYGWIN__) +#elif defined(_WIN32) || (defined(__GNUC__) && defined(__int64)) # define z_off64_t __int64 #elif defined(__GO32__) # define z_off64_t offset_t diff --git a/zconf.h.cmakein b/zconf.h.cmakein index 2b10d5439..427b64945 100644 --- a/zconf.h.cmakein +++ b/zconf.h.cmakein @@ -513,7 +513,7 @@ typedef uLong FAR uLongf; #if !defined(_WIN32) && defined(Z_LARGE64) # define z_off64_t off64_t -#elif defined(_WIN32) && !defined(__CYGWIN__) +#elif defined(_WIN32) || (defined(__GNUC__) && defined(__int64)) # define z_off64_t __int64 #elif defined(__GO32__) # define z_off64_t offset_t diff --git a/zconf.h.in b/zconf.h.in index 04d2b52c8..b0c368c83 100644 --- a/zconf.h.in +++ b/zconf.h.in @@ -511,7 +511,7 @@ typedef uLong FAR uLongf; #if !defined(_WIN32) && defined(Z_LARGE64) # define z_off64_t off64_t -#elif defined(_WIN32) && !defined(__CYGWIN__) +#elif defined(_WIN32) || (defined(__GNUC__) && defined(__int64)) # define z_off64_t __int64 #elif defined(__GO32__) # define z_off64_t offset_t