diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-10-20 09:48:24 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2019-10-20 09:48:24 +0100 |
commit | 67c1c65bf2ef7752c036563e4dda4bea064569b2 (patch) | |
tree | 3c3659428671e400b15fad5b97caa9a39d2b83f8 /utils/utils.c | |
parent | 51c2d48096f8f53583422113508912b3243c48f0 (diff) | |
download | netsurf-67c1c65bf2ef7752c036563e4dda4bea064569b2.tar.gz netsurf-67c1c65bf2ef7752c036563e4dda4bea064569b2.tar.bz2 |
attempt a different fix for amiga os 3 strtoull
Diffstat (limited to 'utils/utils.c')
-rw-r--r-- | utils/utils.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/utils/utils.c b/utils/utils.c index c5c1529a3..b260f373e 100644 --- a/utils/utils.c +++ b/utils/utils.c @@ -283,6 +283,19 @@ char *human_friendly_bytesize(unsigned long long int bsize) { } +#ifndef HAVE_STRTOULL +/** + * string to unsigned long long + * + */ +unsigned long long int _strtoull(const char *nptr, char **endptr, int base) +{ + return (unsigned long long int)strtoul(nptr, endptr, base); +} + +#endif + + #ifndef HAVE_STRCASESTR /** |