mirror of
https://github.com/curl/curl.git
synced 2026-04-27 14:12:18 +03:00
strtooff: fix build for systems with long long but no strtoll option
Closes #1829 Reported-by: Dan Fandrich Bug: https://github.com/curl/curl/pull/1758#issuecomment-324861615
This commit is contained in:
parent
b3b75d1778
commit
78b863de7d
1 changed files with 2 additions and 4 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue