MSVC's __int64 data type is only available when _INTEGRAL_MAX_BITS >= 64

This commit is contained in:
Yang Tse 2008-08-21 06:58:12 +00:00
parent 95cef39def
commit 4dbfc91e2b
3 changed files with 3 additions and 3 deletions

View File

@ -417,7 +417,7 @@
/* ===================================== */ /* ===================================== */
#elif defined(_MSC_VER) #elif defined(_MSC_VER)
# if (_MSC_VER >= 900) # if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
# define CURL_SIZEOF_LONG 4 # define CURL_SIZEOF_LONG 4
# define CURL_OFF_T __int64 # define CURL_OFF_T __int64
# define CURL_FORMAT_CURL_OFF_T "I64d" # define CURL_FORMAT_CURL_OFF_T "I64d"

View File

@ -65,7 +65,7 @@
# define LONG_LONG_TYPE long long # define LONG_LONG_TYPE long long
# define HAVE_LONG_LONG_TYPE # define HAVE_LONG_LONG_TYPE
#else #else
# if defined(_MSC_VER) && (_MSC_VER >= 900) # if defined(_MSC_VER) && (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
# define LONG_LONG_TYPE __int64 # define LONG_LONG_TYPE __int64
# define HAVE_LONG_LONG_TYPE # define HAVE_LONG_LONG_TYPE
# else # else

View File

@ -45,7 +45,7 @@
# ifdef HAVE_STRTOLL # ifdef HAVE_STRTOLL
# define curlx_strtoofft strtoll # define curlx_strtoofft strtoll
# else # else
# if defined(_MSC_VER) && (_MSC_VER >= 1300) # if defined(_MSC_VER) && (_MSC_VER >= 1300) && (_INTEGRAL_MAX_BITS >= 64)
_CRTIMP __int64 __cdecl _strtoi64(const char *, char **, int); _CRTIMP __int64 __cdecl _strtoi64(const char *, char **, int);
# define curlx_strtoofft _strtoi64 # define curlx_strtoofft _strtoi64
# else # else