]> granicus.if.org Git - php/commitdiff
Make this happy on gcc2
authorRasmus Lerdorf <rasmus@php.net>
Fri, 5 Jun 2009 22:34:30 +0000 (22:34 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Fri, 5 Jun 2009 22:34:30 +0000 (22:34 +0000)
ext/date/php_date.c

index fa3f449fa745dd40471034fc434f49ff8ac10535..d5aef811dcc4126a4b10bd8b2340706221454e2a 100644 (file)
 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)