Re: ssize_t vs win64

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: ssize_t vs win64
Дата
Msg-id 9837222c1001021241r4b0eff75tdc886781554e914a@mail.gmail.com
обсуждение исходный текст
Ответ на Re: ssize_t vs win64  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Add subdirectory support for DATA/DOCS with PGXS
Следующее
От: David Fetter
Дата:
Сообщение: psql tab completion for DO blocks