rasmus          Fri Jun  5 22:34:30 2009 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/date   php_date.c 
  Log:
  Make this happy on gcc2
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/date/php_date.c?r1=1.43.2.45.2.70&r2=1.43.2.45.2.71&diff_format=u
Index: php-src/ext/date/php_date.c
diff -u php-src/ext/date/php_date.c:1.43.2.45.2.70 
php-src/ext/date/php_date.c:1.43.2.45.2.71
--- php-src/ext/date/php_date.c:1.43.2.45.2.70  Sun May 31 20:43:57 2009
+++ php-src/ext/date/php_date.c Fri Jun  5 22:34:30 2009
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_date.c,v 1.43.2.45.2.70 2009/05/31 20:43:57 stas Exp $ */
+/* $Id: php_date.c,v 1.43.2.45.2.71 2009/06/05 22:34:30 rasmus Exp $ */
 
 #include "php.h"
 #include "php_streams.h"
@@ -34,6 +34,10 @@
 static __inline __int64 llabs( __int64 i ) { return i >= 0? i: -i; }
 #endif
 
+#if defined(__GNUC__) && __GNUC__ < 3
+static __inline __int64_t llabs( __int64_t i ) { return i >= 0 ? i : -i; }
+#endif
+
 /* {{{ arginfo */
 static
 ZEND_BEGIN_ARG_INFO_EX(arginfo_date, 0, 0, 1)



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to