diff -rupN zlib-1.2.13.orig/zconf.h zlib-1.2.13/zconf.h
--- zlib-1.2.13.orig/zconf.h	2022-10-09 17:32:50.000000000 -0700
+++ zlib-1.2.13/zconf.h	2023-11-23 11:11:49.031308611 -0800
@@ -517,10 +517,10 @@ typedef uLong FAR uLongf;
 #  define z_off_t long
 #endif
 
-#if !defined(_WIN32) && defined(Z_LARGE64)
+#if defined(Z_LARGE64)
 #  define z_off64_t off64_t
 #else
-#  if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO)
+#  if defined(_WIN32) && !defined(Z_SOLO)
 #    define z_off64_t __int64
 #  else
 #    define z_off64_t z_off_t
diff -rupN zlib-1.2.13.orig/zconf.h.cmakein zlib-1.2.13/zconf.h.cmakein
--- zlib-1.2.13.orig/zconf.h.cmakein	2022-10-09 17:32:50.000000000 -0700
+++ zlib-1.2.13/zconf.h.cmakein	2023-11-23 11:11:49.032308611 -0800
@@ -519,10 +519,10 @@ typedef uLong FAR uLongf;
 #  define z_off_t long
 #endif
 
-#if !defined(_WIN32) && defined(Z_LARGE64)
+#if defined(Z_LARGE64)
 #  define z_off64_t off64_t
 #else
-#  if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO)
+#  if defined(_WIN32) && !defined(Z_SOLO)
 #    define z_off64_t __int64
 #  else
 #    define z_off64_t z_off_t
diff -rupN zlib-1.2.13.orig/zconf.h.in zlib-1.2.13/zconf.h.in
--- zlib-1.2.13.orig/zconf.h.in	2022-10-09 17:32:50.000000000 -0700
+++ zlib-1.2.13/zconf.h.in	2023-11-23 11:11:49.032308611 -0800
@@ -517,10 +517,10 @@ typedef uLong FAR uLongf;
 #  define z_off_t long
 #endif
 
-#if !defined(_WIN32) && defined(Z_LARGE64)
+#if defined(Z_LARGE64)
 #  define z_off64_t off64_t
 #else
-#  if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO)
+#  if defined(_WIN32) && !defined(Z_SOLO)
 #    define z_off64_t __int64
 #  else
 #    define z_off64_t z_off_t
