]> 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 20391a283bd59f5606a44c2fd00ec8828fe70c4a..7e12f60952a97d23db3ab2f1d9285b1152d7fb0b 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -58,6 +58,8 @@ PHP                                                                        NEWS
   includes '-'). (Adam, solar at azrael dot ws).
 - 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 #51171 (curl_setopt() doesn't output any errors or warnings when 
   an invalid option is provided). (Ilia)
 - Fixed bug #51128 (imagefill() doesn't work with large images). (Pierre)
index 68fcc7463a21ec8725dd80b178b165dd4ff903ba..e8678c1fad68801293e97c84a955b24cb7a63aad 100644 (file)
@@ -35,7 +35,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 */