diff options
| author | Rémi Verschelde | 2018-05-16 18:13:19 +0200 |
|---|---|---|
| committer | GitHub | 2018-05-16 18:13:19 +0200 |
| commit | b1182f9de122c466fedc831bb209e132a25f8d34 (patch) | |
| tree | 1f80ae0015c7fc0b5f49686c0859b1dc6ecd391d /thirdparty/minizip/ioapi.h | |
| parent | 760ec584df5ab1126b73a8c0d47637916e22250e (diff) | |
| parent | 7e563f75b528c0565c0fff0d251bb752cd31dbd8 (diff) | |
| download | godot-b1182f9de122c466fedc831bb209e132a25f8d34.tar.gz godot-b1182f9de122c466fedc831bb209e132a25f8d34.tar.zst godot-b1182f9de122c466fedc831bb209e132a25f8d34.zip | |
Diffstat (limited to 'thirdparty/minizip/ioapi.h')
| -rw-r--r-- | thirdparty/minizip/ioapi.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/thirdparty/minizip/ioapi.h b/thirdparty/minizip/ioapi.h index 6043d34ce..4011e9cab 100644 --- a/thirdparty/minizip/ioapi.h +++ b/thirdparty/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> @@ -65,6 +66,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))) @@ -101,6 +107,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; |
