]> granicus.if.org Git - curl/commitdiff
strtooff: fix build for systems with long long but no strtoll option
authorDaniel Stenberg <daniel@haxx.se>
Fri, 25 Aug 2017 09:09:46 +0000 (11:09 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 27 Aug 2017 17:07:38 +0000 (19:07 +0200)
Closes #1829

Reported-by: Dan Fandrich
Bug: https://github.com/curl/curl/pull/1758#issuecomment-324861615

lib/strtoofft.c

index 5e800b4e34d410838a7db123fcf58416e664ba08..807fc54549903a3c5dae973834009d457c20858b 100644 (file)
 #      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. */