curl-library
Re: bcc32 wont compile libcurl
Date: Thu, 15 Jul 2004 03:20:50 +0200
Hi,
> Borland doesn't like the 'LL' suffixes. Rewrite:
> #ifndef LLONG_MAX
> #if defined(_MSC_VER) || defined(__BORLANDC__)
> #define LLONG_MAX (curl_off_t)0x7FFFFFFFFFFFFFFFi64
> #define LLONG_MIN (curl_off_t)0x8000000000000000i64
> #else
> ..
not needed anymore since you confirmed SIZEOF_CURL_OFF_T has to be 4 for Borland, so this part isnt compiled any longer.
> But even though bcc32 have __int64, SIZEOF_CURL_OFF_T == 8
> cannot be used since Borland's libs doesn't have _lseeki64() required in
> lib/file.c.
that'S what I thought, butu was not sure...
> Could you add this to lib/config-win32.h:
> #ifdef __BORLANDC__
> /* lacks _lseeki64(), so we don't support >2GB files */
> #define SIZEOF_CURL_OFF_T 4
> #else
> #define SIZEOF_CURL_OFF_T 8
> #endif
done. With recent Makefiles I can now at least successfully build standard curl.exe with BCC...
Guenter.
Received on 2004-07-15