diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2002-08-03 20:29:54 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2002-08-03 20:29:54 +0000 |
commit | 2dafc55212bd3e82aa5ed38d76ca04c534cb7b7c (patch) | |
tree | f6a70870694ee3d2e660f350706360cf1ac7fd0e /strings/apr_strings.c | |
parent | ddb9696132cf0e42e1a77dc416149ce590cdb9e1 (diff) | |
download | libapr-2dafc55212bd3e82aa5ed38d76ca04c534cb7b7c.tar.gz |
Out of time and at the end of my config-foo. This should get us the
appropriate 64 bit atoi/atol/atoll or signal that the fn is unavailable.
Someone with better config foo than I might want to make both variables
private and relocate them into apr_private.h (without APR_ decoration.)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63781 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'strings/apr_strings.c')
-rw-r--r-- | strings/apr_strings.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/strings/apr_strings.c b/strings/apr_strings.c index e58c88dc3..01df0b5ae 100644 --- a/strings/apr_strings.c +++ b/strings/apr_strings.c @@ -235,11 +235,11 @@ void *memchr(const void *s, int c, size_t n) APR_DECLARE(apr_int64_t) apr_strtoi64(const char *buf, char **end, int base) { -#if (APR_HAVE_STRTOLL) - return (apr_int64_t)strtoll(buf, end, base); +#if (APR_HAVE_INT64_STRFN) + return APR_INT64_STRFN(buf, end, base); #else - /* XXX This Is Absolutely Bogus */ - return (apr_int64_t)strtol(buf, end, base); + /* XXX This Is Absolutely Bogus :: REIMPLEMENT! */ + return strtol(buf, end, base); #endif } |