cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: LONG_MAX patch

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 15 Jan 2004 07:43:11 +0100 (CET)

On Tue, 13 Jan 2004, Gisle Vanem wrote:

> LONG_MAX is used in main.c, but <limits.h> isn't included anywhere

Hm, it took me some time to digest your mail and to get me thinking... :-)

Doesn't windows provide an 'off_t' type larger than 32 bits? If so, then
LONG_MAX shouldn't be needed in src/main.c since the code uses LLONG_MAX
instead... Also, if it does provide that, is there a strtoll() or similar
function to convert from a string to such a value?

I would guess that Windows has support for large files somehow!

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
Received on 2004-01-15