cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Helping apps use 64bit with libcurl

From: Jamie Lokier <jamie_at_shareable.org>
Date: Tue, 20 May 2008 23:28:42 +0100

Daniel Stenberg wrote:
> Hey
>
> As we've seen before, there are times when "people" manage to build their
> libcurl-using applications without enabling 64bit sizes and thus the
> application and libcurl end up have different ideas about how the *_LARGE
> options work and what size the curl_off_t type is.

Suggestion: let the *_LARGE constants have different values at compile
time, determined by the header file, according to the size of curl_off_t.

Programs compiled with one size, and linked to a library compiled with
a different size, will give sensible error results due to the
mismatched constants, instead of random failues or even spurious
successes.

-- Jamie
Received on 2008-05-21