diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-05-03 20:41:22 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-05-03 20:41:22 (GMT) |
commit | 47d7aa4020e2cd163aeba6435d2a701ad48bee45 (patch) | |
tree | 7bd7477b079cef72b27e17b8aad253e764424f27 /compat/zlib/contrib/minizip/ioapi.h | |
parent | 8124b5fb585273485814508c23908f35f44d3fba (diff) | |
download | tcl-47d7aa4020e2cd163aeba6435d2a701ad48bee45.zip tcl-47d7aa4020e2cd163aeba6435d2a701ad48bee45.tar.gz tcl-47d7aa4020e2cd163aeba6435d2a701ad48bee45.tar.bz2 |
zlib-1.2.7
Diffstat (limited to 'compat/zlib/contrib/minizip/ioapi.h')
-rw-r--r-- | compat/zlib/contrib/minizip/ioapi.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/compat/zlib/contrib/minizip/ioapi.h b/compat/zlib/contrib/minizip/ioapi.h index 8309c4c..8dcbdb0 100644 --- a/compat/zlib/contrib/minizip/ioapi.h +++ b/compat/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. @@ -38,6 +38,7 @@ #ifndef _FILE_OFFSET_BIT #define _FILE_OFFSET_BIT 64 #endif + #endif #include <stdio.h> @@ -49,6 +50,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 +91,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; |