cURL / Mailing Lists / curl-library / Single Mail


Re: int64_t vs long long

From: Dan Fandrich <>
Date: Thu, 12 Jun 2008 12:00:08 -0700

On Thu, Jun 12, 2008 at 12:49:22PM +0200, Yang Tse wrote:
> Stuff that is related with the new curl_off_t definition...
> Given a compiler/system that has an intrinsec 64-bit "long long" data
> type and an "int64_t" declared in <stdint.h>" which one should we
> prefer for curl_off_t ?
> It seems to me that it would be reasonable to prefer the compiler
> intrinsec data type over the library one. But I'm asking for other
> opinions.

It seems safest to use int64_t if it's available. That will also work on
oddball compilers that we don't take care of separately.

>>> Dan

--              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-06-12