mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
try to fix build when LONG_MAX not defined
This commit is contained in:
parent
9f2ce6b685
commit
31f95eaefb
1 changed files with 5 additions and 2 deletions
|
@ -129,9 +129,12 @@ int _zip_mkstemp(char *);
|
||||||
#if defined(HAVE_FTELLO) && defined(HAVE_FSEEKO)
|
#if defined(HAVE_FTELLO) && defined(HAVE_FSEEKO)
|
||||||
#define ZIP_FSEEK_MAX ZIP_OFF_MAX
|
#define ZIP_FSEEK_MAX ZIP_OFF_MAX
|
||||||
#define ZIP_FSEEK_MIN ZIP_OFF_MIN
|
#define ZIP_FSEEK_MIN ZIP_OFF_MIN
|
||||||
|
#elif SIZEOF_LONG >= 8
|
||||||
|
#define ZIP_FSEEK_MAX (zip_int64_t)ZIP_INT64_MAX
|
||||||
|
#define ZIP_FSEEK_MIN (zip_int64_t)ZIP_INT64_MIN
|
||||||
#else
|
#else
|
||||||
#define ZIP_FSEEK_MAX LONG_MAX
|
#define ZIP_FSEEK_MAX ZIP_INT32_MAX
|
||||||
#define ZIP_FSEEK_MIN LONG_MIN
|
#define ZIP_FSEEK_MIN ZIP_INT32_MIN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef SIZE_MAX
|
#ifndef SIZE_MAX
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue