From dbddbb6e3435ebc244af40d67863b7c62957072f Mon Sep 17 00:00:00 2001 From: Sriram Natarajan Date: Tue, 8 Jun 2010 21:23:48 +0000 Subject: [PATCH] - Fixed Bug #51168 (fails to compile with Sun Studio) # C99 standard supports inline keyword and supported by # by major compilers like GCC, HP C, IBM C and Sun C --- NEWS | 2 ++ ext/date/php_date.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 2e44f10640..2a4a66c8e3 100644 --- a/NEWS +++ b/NEWS @@ -144,6 +144,8 @@ PHP NEWS alexr at oplot dot com) - Fixed bug #51190 (ftp_put() returns false when transfer was successful). (Ilia) +- Fixed bug #51183 (ext/date/php_date.c fails to compile with Sun Studio). + (Sriram Natarajan) - Fixed bug #51176 (Static calling in non-static method behaves like $this->). (Felipe) - Fixed bug #51171 (curl_setopt() doesn't output any errors or warnings when diff --git a/ext/date/php_date.c b/ext/date/php_date.c index db15771feb..95927949b8 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -36,7 +36,7 @@ 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; } +static inline long long php_date_llabs( long long i ) { return i >= 0 ? i : -i; } #endif /* {{{ arginfo */ -- 2.49.0