Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyKdi-0008KY-BT for pgsql-committers@arkaria.postgresql.org; Sat, 30 Sep 2017 16:29:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dyKdh-0003rF-UT for pgsql-committers@arkaria.postgresql.org; Sat, 30 Sep 2017 16:29:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dyKdS-0003Pj-Ey for pgsql-committers@postgresql.org; Sat, 30 Sep 2017 16:29:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dyKdL-00039Y-83 for pgsql-committers@postgresql.org; Sat, 30 Sep 2017 16:29:02 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v8UGSp74029623; Sat, 30 Sep 2017 12:28:51 -0400 From: Tom Lane To: Andres Freund cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Extend & revamp pg_bswap.h infrastructure. In-reply-to: <20170930162040.pt2clbqsrpdddtxd@alap3.anarazel.de> References: <31674.1506788226@sss.pgh.pa.us> <20170930162040.pt2clbqsrpdddtxd@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sat, 30 Sep 2017 09:20:40 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29621.1506788931.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 30 Sep 2017 12:28:51 -0400 Message-ID: <29622.1506788931@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Andres Freund writes: > On 2017-09-30 12:17:06 -0400, Tom Lane wrote: >> c.h will already have included . 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 stdli= b.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 --=20 Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers