00001
00002
00003
00004
00005 #ifndef _CURL_STRTOOFFT_H
00006 #define _CURL_STRTOOFFT_H
00007
00008 #include "setup.h"
00009 #include <stddef.h>
00010 #include <curl/curl.h>
00011
00012 #if (SIZEOF_CURL_OFF_T > 4) && (SIZEOF_LONG < 8)
00013 #if HAVE_STRTOLL
00014 #define curlx_strtoofft strtoll
00015 #else
00016
00017 #if defined(_MSC_VER) && (_MSC_VER >= 1300)
00018 #define curlx_strtoofft _strtoi64
00019 #else
00020 curl_off_t curlx_strtoll(const char *nptr, char **endptr, int base);
00021 #define curlx_strtoofft curlx_strtoll
00022 #define NEED_CURL_STRTOLL
00023 #endif
00024
00025 #endif
00026 #else
00027
00028 #define curlx_strtoofft strtol
00029 #endif
00030
00031 #if defined(_MSC_VER) || defined(__WATCOMC__)
00032 #define CURL_LLONG_MIN 0x8000000000000000i64
00033 #define CURL_LLONG_MAX 0x7FFFFFFFFFFFFFFFi64
00034 #elif defined(HAVE_LL)
00035 #define CURL_LLONG_MIN 0x8000000000000000LL
00036 #define CURL_LLONG_MAX 0x7FFFFFFFFFFFFFFFLL
00037 #else
00038 #define CURL_LLONG_MIN 0x8000000000000000L
00039 #define CURL_LLONG_MAX 0x7FFFFFFFFFFFFFFFL
00040 #endif
00041
00042 #endif
00043