cURL / Mailing Lists / curl-library / Single Mail


Re: max download/upload speed setting (libcurl, Delphi)

From: Daniel Stenberg <>
Date: Mon, 6 Jul 2009 20:02:20 +0200 (CEST)

On Mon, 6 Jul 2009, Jeff Pohlmeyer wrote:

>> In general I think you can basically do sizeof() on the type and then
>> decide if a 32bit or a 64bit representation is needed.
> But wouldn't that need to be done from a test program written in C (that
> actually used the C header's idea of curl_off_t) and repeated for each
> individual platform the binding might be used on?

The CURL_SIZEOF_CURL_OFF_T define should be usable for this. And the
CURL_TYPEOF_CURL_OFF_T define should be useful to figure out what "real" type
the curl_off_t is.

(Both these come from curl/curlbuild.h)

Received on 2009-07-06