From a6870cabfcb9e418056758f06dae871bd2813ab8 Mon Sep 17 00:00:00 2001 From: Daniel Gibson Date: Sat, 8 Jun 2024 10:44:02 +0200 Subject: [PATCH] minizconf.h: (hopefully) fix MinGW compatibility of z_off64_t --- neo/framework/miniz/minizconf.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/neo/framework/miniz/minizconf.h b/neo/framework/miniz/minizconf.h index b9fa5779..982ca5f3 100644 --- a/neo/framework/miniz/minizconf.h +++ b/neo/framework/miniz/minizconf.h @@ -51,13 +51,18 @@ // FIXME: why not just set this to int64_t? #if !defined(_WIN32) && defined(Z_LARGE64) -# define z_off64_t off64_t + #define z_off64_t off64_t #else -# if defined(_WIN32) && !defined(__GNUC__) -# define z_off64_t __int64 -# else -# define z_off64_t z_off_t -# endif + #if defined(_WIN32) + #ifdef _MSC_VER + #define z_off64_t __int64 + #else + #include + #define z_off64_t int64_t + #endif + #else + #define z_off64_t z_off_t + #endif #endif #if defined(__cplusplus) && __cplusplus >= 201103L