summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLior Kaplan <kaplanlior@gmail.com>2014-07-17 22:58:36 +0300
committerLior Kaplan <kaplanlior@gmail.com>2014-07-17 22:58:36 +0300
commit2dff153b23c7c874e8c98e1f3bda2e00cde0bd71 (patch)
tree215da5e67173be2d34aca78de2dc8cda20e63388
parentf0a1e410a3c23e6ac8c4d10a0218a3c40190b64a (diff)
downloadphp-git-2dff153b23c7c874e8c98e1f3bda2e00cde0bd71.tar.gz
Enable build without atoll (e.g old AIX flavours)
-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 595b0b040b..4259bf0fcb 100644
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@ -50,7 +50,11 @@ static inline long long php_date_llabs( long long i ) { return i >= 0 ? i : -i;
int st = snprintf(s, len, "%lld", i); \
s[st] = '\0'; \
} while (0);
+#ifdef HAVE_ATOLL
# define DATE_A64I(i, s) i = atoll(s)
+#else
+# define DATE_A64I(i, s) i = strtoll(s, NULL, 10)
+#endif
#endif
/* {{{ arginfo */