curl-library
Re: Helping apps use 64bit with libcurl
Date: Mon, 26 May 2008 14:18:49 +0200
Michal Marek wrote:
> Dan Fandrich wrote:
>> 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.
>
> Right, in this case, libcurl is lost. But if we do the above change in
> the header, then passing the real CURLOPT_POSTFIELDSIZE_LARGE code can
> be considered an error, because this means that in the application
> sizeof(curl_off_t) == 8.
>
> Well, almost. Currently, the programmer can hardcode the 30120 option
> code and pass the correct type... :-(
And more important, applications compiled against current headers will
continue to use the 30120 option code regardless of the size of curl_off_t.
Michal
Received on 2008-05-26