diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-02-26 16:23:28 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-02-26 16:23:28 +0000 |
commit | 4515d06465da15340c56d5b4f14ab4950fd59baa (patch) | |
tree | ede4a04b2ee9145fa76a0b55f813570190065fea /src/main.c | |
parent | b6a4ca9bc82c4dbf4f3abaa6ff63bb832fa1bd03 (diff) |
David Byron's fixes to make the latest curl build fine under MSVC 6.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index ded76944c..bda7f2b19 100644 --- a/src/main.c +++ b/src/main.c @@ -52,7 +52,7 @@ #define CURLseparator "--_curl_--" #if defined(WIN32)&&!defined(__CYGWIN32__) -#include <winsock.h> +#include <winsock2.h> #endif #ifdef TIME_WITH_SYS_TIME @@ -1017,9 +1017,14 @@ static int str2offset(curl_off_t *val, char *str) * definitions for LLONG_{MIN,MAX} or LONG_LONG_{MIN,MAX}. */ #ifndef LLONG_MAX +#ifdef _MSC_VER +#define LLONG_MAX (curl_off_t)0x7FFFFFFFFFFFFFFFi64 +#define LLONG_MIN (curl_off_t)0x8000000000000000i64 +#else #define LLONG_MAX (curl_off_t)0x7FFFFFFFFFFFFFFFLL #define LLONG_MIN (curl_off_t)0x8000000000000000LL #endif +#endif /* this is a duplicate of the function that is also used in libcurl */ *val = strtoofft(str, NULL, 0); |