summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannes Magnusson <bjori@php.net>2009-06-17 17:56:17 +0000
committerHannes Magnusson <bjori@php.net>2009-06-17 17:56:17 +0000
commitb685def15acadf29e0657dc6bce3c53404948f3b (patch)
treea66708cac70af723ded9f200de452325b9ee20df
parent31f64d6943daf8713a957cf22098ecae0dfe9381 (diff)
downloadphp-git-b685def15acadf29e0657dc6bce3c53404948f3b.tar.gz
MFB5.2: "Make this happy on gcc2"
-rw-r--r--ext/date/php_date.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index a52188f88b..5b9c7e9df3 100644
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@ -35,6 +35,10 @@
# include "win32/php_stdint.h"
#endif
+#if defined(__GNUC__) && __GNUC__ < 3
+static __inline __int64_t llabs( __int64_t i ) { return i >= 0 ? i : -i; }
+#endif
+
/* {{{ arginfo */
ZEND_BEGIN_ARG_INFO_EX(arginfo_date, 0, 0, 1)
ZEND_ARG_INFO(0, format)