From 5ee03b46d26ac93a24c7277388595b5786fe3e0e Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 22 Jun 2009 13:42:29 +0000 Subject: [PATCH] Fixed bug #48636 (Error compiling of ext/date on netware). --- NEWS | 2 ++ ext/date/php_date.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/NEWS b/NEWS index 822b46c701..dada365d6b 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,8 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2009, PHP 5.2.11 +- Fixed bug #48636 (Error compiling of ext/date on netware). (guenter at + php.net, Ilia) - Fixed bug #48629 (get_defined_constants() ignores categorize parameter). (Felipe) - Fixed bug #48276 (date("Y") on big endian machines produces the diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 29a348fb70..50f95645cf 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -38,6 +38,10 @@ static __inline __int64 llabs( __int64 i ) { return i >= 0? i: -i; } static __inline __int64_t llabs( __int64_t i ) { return i >= 0 ? i : -i; } #endif +#if defined(NETWARE) && defined(__MWERKS__) +static __inline long long llabs( long long i ) { return i >= 0 ? i : -i; } +#endif + /* {{{ arginfo */ static ZEND_BEGIN_ARG_INFO_EX(arginfo_date, 0, 0, 1) -- 2.50.1