From 482c77e661f3c84c3ff848754607c769e734e763 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Wed, 8 Jun 2022 20:32:54 +0300 Subject: [PATCH 1/2] Add blank lines between if blocks in miniz_zip.c for readability --- miniz_zip.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/miniz_zip.c b/miniz_zip.c index 57e5fad..e768ef6 100644 --- a/miniz_zip.c +++ b/miniz_zip.c @@ -96,6 +96,7 @@ static int mz_stat64(const char *path, struct __stat64 *buffer) #define MZ_FFLUSH fflush #define MZ_FREOPEN mz_freopen #define MZ_DELETE_FILE remove + #elif defined(__MINGW32__) || defined(__WATCOMC__) #ifndef MINIZ_NO_TIME #include @@ -111,6 +112,7 @@ static int mz_stat64(const char *path, struct __stat64 *buffer) #define MZ_FFLUSH fflush #define MZ_FREOPEN(f, m, s) freopen(f, m, s) #define MZ_DELETE_FILE remove + #elif defined(__TINYC__) #ifndef MINIZ_NO_TIME #include @@ -126,6 +128,7 @@ static int mz_stat64(const char *path, struct __stat64 *buffer) #define MZ_FFLUSH fflush #define MZ_FREOPEN(f, m, s) freopen(f, m, s) #define MZ_DELETE_FILE remove + #elif defined(__USE_LARGEFILE64) /* gcc, clang */ #ifndef MINIZ_NO_TIME #include @@ -141,6 +144,7 @@ static int mz_stat64(const char *path, struct __stat64 *buffer) #define MZ_FFLUSH fflush #define MZ_FREOPEN(p, m, s) freopen64(p, m, s) #define MZ_DELETE_FILE remove + #elif defined(__APPLE__) #ifndef MINIZ_NO_TIME #include From de0a4d24446a88f273f4d43ce9086149332c7141 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Wed, 8 Jun 2022 20:36:42 +0300 Subject: [PATCH 2/2] Use stdio functions without 64 suffix on FreeBSD FreeBSD neither has nor needs suffixed functions --- miniz_zip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniz_zip.c b/miniz_zip.c index e768ef6..348cdfb 100644 --- a/miniz_zip.c +++ b/miniz_zip.c @@ -145,7 +145,7 @@ static int mz_stat64(const char *path, struct __stat64 *buffer) #define MZ_FREOPEN(p, m, s) freopen64(p, m, s) #define MZ_DELETE_FILE remove -#elif defined(__APPLE__) +#elif defined(__APPLE__) || defined(__FreeBSD__) #ifndef MINIZ_NO_TIME #include #endif