com php-src: try to fix build when LONG_MAX not defined : ext/zip/lib/zipint.h

From: Date: Wed, 06 May 2015 14:24:21 +0000
Subject: com php-src: try to fix build when LONG_MAX not defined : ext/zip/lib/zipint.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-86624@lists.php.net to get a copy of this message
Commit: 31f95eaefbfed9f03346d046621cfbdb3cc68268 Author: Remi Collet <remi@php.net> Wed, 6 May 2015 16:24:21 +0200 Parents: 9f2ce6b6853787f4a956140a6e71fac957fcdd13 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=31f95eaefbfed9f03346d046621cfbdb3cc68268 Log: try to fix build when LONG_MAX not defined Changed paths: M ext/zip/lib/zipint.h Diff: diff --git a/ext/zip/lib/zipint.h b/ext/zip/lib/zipint.h index 40f43af..1296025 100644 --- a/ext/zip/lib/zipint.h +++ b/ext/zip/lib/zipint.h @@ -129,9 +129,12 @@ int _zip_mkstemp(char *); #if defined(HAVE_FTELLO) && defined(HAVE_FSEEKO) #define ZIP_FSEEK_MAX ZIP_OFF_MAX #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 -#define ZIP_FSEEK_MAX LONG_MAX -#define ZIP_FSEEK_MIN LONG_MIN +#define ZIP_FSEEK_MAX ZIP_INT32_MAX +#define ZIP_FSEEK_MIN ZIP_INT32_MIN #endif #ifndef SIZE_MAX

« previous php.cvs (#86624) next »