Re: off_t
On Tue, Dec 30, 2008 at 03:11:59PM +0000, Kai Hendry wrote:
>
> http.c:730: error: format '%lld' expects type 'long long int', but
> argument 8 has type '__off_t'
I think it's actually a "long int" (or just long) on amd64, since it's
already 64 bit long. I think we have 1 or 2 other arches with
the same problem.
As far as I know, there is no printf specifier for it, and
<inttypes.h> doesn't seem to have anything for it either.
So what you should do is make a configure test to check the size
and then use something like PRId32 / PRId64.
Kurt
Reply to:
- References:
- off_t
- From: "Kai Hendry" <hendry@iki.fi>