cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: bcc32 wont compile libcurl

From: Gisle Vanem <giva_at_bgnett.no>
Date: Wed, 14 Jul 2004 14:32:00 +0200

"Guenter Knauf" <eflash_at_gmx.net> said:

> main.c:
> Error E2293 main.c 1051: ) expected in function str2offset
> *** 1 errors in Compile ***
>
> any idea what's there wrong???

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
..

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.

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

--gv
Received on 2004-07-14