mirror of
https://github.com/curl/curl.git
synced 2026-05-16 18:16:19 +03:00
define ENABLE_64BIT if we have enabled 64bit large files
define our internal CURL_FORMAT_OFF_T define, we don't use the global one!
This commit is contained in:
parent
485122035c
commit
8cb2a68694
1 changed files with 19 additions and 0 deletions
19
lib/setup.h
19
lib/setup.h
|
|
@ -70,6 +70,25 @@ typedef unsigned char bool;
|
|||
#define typedef_bool
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LONGLONG
|
||||
#define LONG_LONG long long
|
||||
#define ENABLE_64BIT
|
||||
#else
|
||||
#ifdef _MSC_VER
|
||||
#define LONG_LONG __int64
|
||||
#define ENABLE_64BIT
|
||||
#endif
|
||||
#endif /* HAVE_LONGLONG */
|
||||
|
||||
/* We set up our internal prefered CURL_FORMAT_OFF_T here */
|
||||
#undef CURL_FORMAT_OFF_T
|
||||
#if SIZEOF_CURL_OFF_T > 4
|
||||
#define CURL_FORMAT_OFF_T "%lld"
|
||||
#else
|
||||
#define CURL_FORMAT_OFF_T "%ld"
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef NEED_REENTRANT
|
||||
/* Solaris machines needs _REENTRANT set for a few function prototypes and
|
||||
things to appear in the #include files. We need to #define it before all
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue