diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2010-02-12 00:00:40 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2010-02-12 00:00:40 +0000 |
commit | 0da769e590b6138271092e0d04d7383ced7af17c (patch) | |
tree | c3135d935f73c7459008bd64dc00167b2038cfd0 | |
parent | 57b3754dca1280edfd93f47384472cdd3095948c (diff) | |
parent | f11c2a21d53ded20a8ffd002b6b40d26bf549705 (diff) | |
download | php-git-php-5.2.13RC2.tar.gz |
5.2.13RC2php-5.2.13RC2
-rw-r--r-- | ext/date/php_date.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 5803ad05e7..68fcc7463a 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -31,10 +31,12 @@ #include <time.h> #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 */ static |