summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2010-02-11 22:37:50 +0000
committerPierre Joye <pajoye@php.net>2010-02-11 22:37:50 +0000
commit149908c561b4c281e938c7672de59c7b975dbcb9 (patch)
tree78c0d95368676a188e9a24b23883b4d43fffb3cf
parent20ce3f280ae5a490589f9d6473ee9b51eba918f6 (diff)
downloadphp-git-149908c561b4c281e938c7672de59c7b975dbcb9.tar.gz
- fix php_date_llabs declaration
-rw-r--r--ext/date/php_date.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index 5803ad05e7..68fcc7463a 100644
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@ -31,10 +31,12 @@
#include <time.h>
#ifdef PHP_WIN32
-# include "win32/php_stdint.h"
-#endif
-
+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; }
+#endif
/* {{{ arginfo */
static