diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-08-25 11:09:46 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-08-25 11:09:46 +0200 |
commit | cc82a7eb27fa87259155c0bf61659436fb667e20 (patch) | |
tree | 6b917cb2305db4c1e2c2befffbdeb3ff90eb25b7 | |
parent | 3e1245504bcd40d98c2632c44bf881ba0df37a09 (diff) | |
download | curl-bagder/without-strtoll.tar.gz |
strtooff: fix build for systems with long long but no strtoll optionbagder/without-strtoll
Reported-by: Dan Fandrich
Bug: https://github.com/curl/curl/pull/1758#issuecomment-324861615
-rw-r--r-- | lib/strtoofft.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/strtoofft.c b/lib/strtoofft.c index 5e800b4e3..807fc5454 100644 --- a/lib/strtoofft.c +++ b/lib/strtoofft.c @@ -48,16 +48,14 @@ # endif # define strtooff _strtoi64 # else - curl_off_t curlx_strtoll(const char *nptr, char **endptr, int base); -# define strtooff curlx_strtoll -# define NEED_CURL_STRTOLL 1 +# define PRIVATE_STRTOOFF 1 # endif # endif #else # define strtooff strtol #endif -#ifdef NEED_CURL_STRTOLL +#ifdef PRIVATE_STRTOOFF /* Range tests can be used for alphanum decoding if characters are consecutive, like in ASCII. Else an array is scanned. Determine this condition now. */ |