Skip to content

Commit 2dff153

Browse files
committed
Enable build without atoll (e.g old AIX flavours)
1 parent f0a1e41 commit 2dff153

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/date/php_date.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ static inline long long php_date_llabs( long long i ) { return i >= 0 ? i : -i;
5050
int st = snprintf(s, len, "%lld", i); \
5151
s[st] = '\0'; \
5252
} while (0);
53+
#ifdef HAVE_ATOLL
5354
# define DATE_A64I(i, s) i = atoll(s)
55+
#else
56+
# define DATE_A64I(i, s) i = strtoll(s, NULL, 10)
57+
#endif
5458
#endif
5559

5660
/* {{{ arginfo */

0 commit comments

Comments
 (0)