]> granicus.if.org Git - php/commitdiff
- Fixed Bug #51168 (fails to compile with Sun Studio)
authorSriram Natarajan <srinatar@php.net>
Tue, 8 Jun 2010 21:23:48 +0000 (21:23 +0000)
committerSriram Natarajan <srinatar@php.net>
Tue, 8 Jun 2010 21:23:48 +0000 (21:23 +0000)
 # C99 standard supports inline keyword and supported by
 # by major compilers like GCC, HP C, IBM C and Sun C

NEWS
ext/date/php_date.c

diff --git a/NEWS b/NEWS
index 2e44f106404cc43f15b195269d08c667b00e1ee7..2a4a66c8e3091caadc9e24f9d24898c9c1708c69 100644 (file)
--- 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    
index db15771feb990392c29db1eacf93a09853d29438..95927949b86a0884bf994787135742940adc1a07 100644 (file)
@@ -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 */