Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyKVX-0007x6-KZ for pgsql-committers@arkaria.postgresql.org; Sat, 30 Sep 2017 16:20:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dyKVX-0008Vk-7O for pgsql-committers@arkaria.postgresql.org; Sat, 30 Sep 2017 16:20:51 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dyKVW-0008Us-ED for pgsql-committers@postgresql.org; Sat, 30 Sep 2017 16:20:50 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dyKVP-0006z3-6O for pgsql-committers@postgresql.org; Sat, 30 Sep 2017 16:20:49 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A7CB120A1B; Sat, 30 Sep 2017 12:20:41 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Sat, 30 Sep 2017 12:20:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=Wka6NmXJXKSDPOjZky 9SPlZLvdf6NzppH74FknaUGwQ=; b=NKgVF3IK6jxEIEk2f6kU0UONOTQ77tEyjN b8uVxqooqGms6I3ikuDMeBQzt2d0DcVwFIxml9TyQajDUrtrUHB6FXO2dzGnA5y7 7d0IOIkVNIDYmVsjHEIvDBc89G8RnJdaNogz/rc4KKXEf88cd8mng3hQhnEkxN6I Rn0R4aTWxOHvoDeLb5EdaQEUz6hjFnTW3raADxGT9dNE78rQvI2TriyIbULcOFPd SD/7Ns5wXsWsVKHjZ9hto84dmfXmOniuxWi9lUlAGQX/WvXG9ID/uo9vo8NN9Aw2 4rDorLcv3zR/dEm3ow52Gjo4GsiDReQiMN43HoL9U0BpKSQG2Vig== X-ME-Sender: X-Sasl-enc: X3HkQWGv2ZZzRuSr0RsVGw9Infyghm7/vn72bE6POrft 1506788441 Received: from intern.anarazel.de (unknown [136.24.76.72]) by mail.messagingengine.com (Postfix) with ESMTPA id 650807FAA0; Sat, 30 Sep 2017 12:20:41 -0400 (EDT) Date: Sat, 30 Sep 2017 09:20:40 -0700 From: Andres Freund To: Tom Lane Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Extend & revamp pg_bswap.h infrastructure. Message-ID: <20170930162040.pt2clbqsrpdddtxd@alap3.anarazel.de> References: <31674.1506788226@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <31674.1506788226@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 On 2017-09-30 12:17:06 -0400, Tom Lane wrote: > Andres Freund writes: > > Extend & revamp pg_bswap.h infrastructure. > > Hm, what is the point of this in pg_bswap.h: > > +#ifdef _MSC_VER > +#include > +#endif > > 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 stdlib.h */ there, but I see no harm in the current form either. > but that won't happen because it depends on configure symbols. FWIW, I've wondered about replacing the pg_config.h tests with explicit gcc version checks. But doesn't seem worth it for now. Greetings, Andres Freund -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers