From 1dc50e21c44799ac4049606e4784453c15701bb7 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Sun, 10 Oct 2004 14:08:05 +0000 Subject: [PATCH] MSVC uses 'i64' suffix for 64-bit sizes. --- lib/strtoofft.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/strtoofft.h b/lib/strtoofft.h index e23e1483e..041989050 100644 --- a/lib/strtoofft.h +++ b/lib/strtoofft.h @@ -58,7 +58,10 @@ curl_off_t curlx_strtoll(const char *nptr, char **endptr, int base); #define curlx_strtoofft strtol #endif -#ifdef HAVE_LL +#if defined(_MSC_VER) +#define CURL_LLONG_MIN 0x8000000000000000i64 +#define CURL_LLONG_MAX 0x7FFFFFFFFFFFFFFFi64 +#elif defined(HAVE_LL) #define CURL_LLONG_MIN 0x8000000000000000LL #define CURL_LLONG_MAX 0x7FFFFFFFFFFFFFFFLL #else