From: Pierre Joye Date: Thu, 11 Feb 2010 22:37:50 +0000 (+0000) Subject: - fix php_date_llabs declaration X-Git-Tag: php-5.4.0alpha1~191^2~1960 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eaaf19bf6fa9ec1963bc8e94d6f10c0cb6da73e8;p=php - fix php_date_llabs declaration --- diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 9d43364f14..cf418d60ac 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -33,10 +33,12 @@ #include #ifdef PHP_WIN32 -# include "win32/php_stdint.h" -#endif - +static __inline __int64 php_date_llabs( __int64 i ) { return i >= 0? i: -i; } +#elif defined(__GNUC__) && __GNUC__ < 3 +static __inline __int64_t php_date_llabs( __int64_t i ) { return i >= 0 ? i : -i; } +#else static __inline long long php_date_llabs( long long i ) { return i >= 0 ? i : -i; } +#endif /* {{{ arginfo */ ZEND_BEGIN_ARG_INFO_EX(arginfo_date, 0, 0, 1)