From da94f0736e102aaa85de66501b3016b3d066f9a4 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Thu, 11 Feb 2010 22:37:50 +0000 Subject: [PATCH] - fix php_date_llabs declaration --- ext/date/php_date.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ext/date/php_date.c b/ext/date/php_date.c index d48f32f12c..1530365348 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -32,10 +32,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) -- 2.50.1