Re: ssize_t vs win64 - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: ssize_t vs win64
Date
Msg-id 9837222c1001021241r4b0eff75tdc886781554e914a@mail.gmail.com
Whole thread Raw
In response to Re: ssize_t vs win64  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Sat, Jan 2, 2010 at 16:59, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Magnus Hagander <magnus@hagander.net> writes:
>> I'm not entirely sure what the type is for, though,
>
> It's supposed to be the same width as size_t but signed.  I would assume
> that it should be 64 bits on Win64.

Yeah, seems reasonable. I'll put in that #ifdef in win32.h then.


> According to SUS this type should be provided by sys/types.h:
> http://www.opengroup.org/onlinepubs/007908799/xsh/systypes.h.html
> so I'm not clear why we have to provide it ourselves at all.

Should, but it's not included in types.h in the Microsoft SDK:s. It
seems to have time_t and off_t, but that's about it.


-- Magnus HaganderMe: http://www.hagander.net/Work: http://www.redpill-linpro.com/


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Add subdirectory support for DATA/DOCS with PGXS
Next
From: David Fetter
Date:
Subject: psql tab completion for DO blocks