1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

make newer MSCV7 compilers use _strtoi64() as a strtoll() replacement

This commit is contained in:
Daniel Stenberg 2004-02-23 14:24:49 +00:00
parent 8ba042cf88
commit 2ae4420869

View File

@ -41,12 +41,20 @@
#if SIZEOF_CURL_OFF_T > 4 #if SIZEOF_CURL_OFF_T > 4
#if HAVE_STRTOLL #if HAVE_STRTOLL
#define strtoofft strtoll #define strtoofft strtoll
#else #else /* HAVE_STRTOLL */
/* For MSVC7 we can use _strtoi64() which seems to be a strtoll() clone */
#if defined(_MSC_VER) && (_MSC_VER >= 1300)
#define strtoll _strtoi64
#else /* MSVC7 or later */
curl_off_t curlx_strtoll(const char *nptr, char **endptr, int base); curl_off_t curlx_strtoll(const char *nptr, char **endptr, int base);
#define strtoofft curlx_strtoll #define strtoofft curlx_strtoll
#define NEED_CURL_STRTOLL #define NEED_CURL_STRTOLL
#endif #endif /* MSVC7 or later */
#else
#endif /* HAVE_STRTOLL */
#else /* SIZEOF_CURL_OFF_T > 4 */
/* simply use strtol() to get 32bit numbers */
#define strtoofft strtol #define strtoofft strtol
#endif #endif