Re: [COMMITTERS] pgsql: Extend & revamp pg_bswap.h infrastructure. - Mailing list pgsql-committers

From Tom Lane
Subject Re: [COMMITTERS] pgsql: Extend & revamp pg_bswap.h infrastructure.
Date
Msg-id 29622.1506788931@sss.pgh.pa.us
Whole thread Raw
In response to Re: [COMMITTERS] pgsql: Extend & revamp pg_bswap.h infrastructure.  (Andres Freund <andres@anarazel.de>)
List pgsql-committers
Andres Freund <andres@anarazel.de> writes:
> On 2017-09-30 12:17:06 -0400, Tom Lane wrote:
>> c.h will already have included <stdlib.h>.  There might be some
>> value in this if we anticipated allowing freestanding use of this
>> header, but that won't happen because it depends on configure symbols.

> Well, it's not that obvious where the _byteswap_* functions are coming
> from on msvc. I guess we can just leave the comment
> /* In all supported versions msvc provides _byteswap_* functions in stdlib.h */
> there, but I see no harm in the current form either.

I'm OK with a comment like that, but I think we have a general style
guideline against headers duplicating stuff from c.h/postgres.h.
It just promotes confusion, IMO.
        regards, tom lane


--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: Re: [COMMITTERS] pgsql: Extend & revamp pg_bswap.h infrastructure.
Next
From: Tom Lane
Date:
Subject: [COMMITTERS] pgsql: Support arrays over domains.