summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-08-25 11:09:46 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-08-27 19:07:38 +0200
commit78b863de7dde9769938883ca810bea8bf0e4ddd9 (patch)
tree2aecec2025844fa5e392485399cc38db43495904 /lib
parentb3b75d1778e3b4f47f6655da5e9012299e3ba6aa (diff)
downloadcurl-78b863de7dde9769938883ca810bea8bf0e4ddd9.tar.gz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/strtoofft.c6
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. */