curl-library
Re: Helping apps use 64bit with libcurl
Date: Wed, 21 May 2008 13:47:27 -0700
On Wed, May 21, 2008 at 10:21:04PM +0200, Daniel Stenberg wrote:
> On Wed, 21 May 2008, Michal Marek wrote:
>
>> In English: if building without LFS, make CURLOPT_POSTFIELDSIZE_LARGE
>> equivalent to CURLOPT_POSTFIELDSIZE.
>
> Yeah, that would be really neat.
>
> Can we make that happen in a somewhat nice way in the headers?
What about this scenario: libcurl is built without LFS, and the app is built
with. The library will then be expecting a long while the app will be
providing a long long. The naive approach of checking sizeof(off_t)
in the header file will fail in this case. I can't think of how to do the
right thing in this case without either a run-time size check or encoding
the actual size expected in a curl header file.
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2008-05-21