Index: third_party/zlib/contrib/minizip/ioapi.h |
diff --git a/third_party/zlib/contrib/minizip/ioapi.h b/third_party/zlib/contrib/minizip/ioapi.h |
index dfa3b6ca3a7c2b6d5a62e3ba4b8d03def320ca57..105f020a9d0ac1cf4a16a206fd5e1544ce34ea7c 100644 |
--- a/third_party/zlib/contrib/minizip/ioapi.h |
+++ b/third_party/zlib/contrib/minizip/ioapi.h |
@@ -21,7 +21,7 @@ |
#ifndef _ZLIBIOAPI64_H |
#define _ZLIBIOAPI64_H |
-#if (!defined(_WIN32)) && (!defined(WIN32)) |
+#if (!defined(_WIN32)) && (!defined(WIN32)) && (!defined(__APPLE__)) |
// Linux needs this to support file operation on files larger then 4+GB |
// But might need better if/def to select just the platforms that needs them. |
@@ -49,6 +49,11 @@ |
#define ftello64 ftell |
#define fseeko64 fseek |
#else |
+#ifdef __FreeBSD__ |
+#define fopen64 fopen |
+#define ftello64 ftello |
+#define fseeko64 fseeko |
+#endif |
#ifdef _MSC_VER |
#define fopen64 fopen |
#if (_MSC_VER >= 1400) && (!(defined(NO_MSCVER_FILE64_FUNC))) |
@@ -85,6 +90,8 @@ typedef 64BIT_INT_CUSTOM_TYPE ZPOS64_T; |
typedef uint64_t ZPOS64_T; |
#else |
+/* Maximum unsigned 32-bit value used as placeholder for zip64 */ |
+#define MAXU32 0xffffffff |
#if defined(_MSC_VER) || defined(__BORLANDC__) |
typedef unsigned __int64 ZPOS64_T; |