Skip to content
Permalink
Browse files

strtooff: fix build for systems with long long but no strtoll option

Reported-by: Dan Fandrich
Bug: #1758 (comment)
  • Loading branch information...
bagder committed Aug 25, 2017
1 parent 3e12455 commit cc82a7eb27fa87259155c0bf61659436fb667e20
Showing with 2 additions and 4 deletions.
  1. +2 −4 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. */

0 comments on commit cc82a7e

Please sign in to comment.
You can’t perform that action at this time.