Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fDxwx-00024J-6G for pgsql-hackers@arkaria.postgresql.org; Wed, 02 May 2018 20:02:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fDxwv-00055u-75 for pgsql-hackers@arkaria.postgresql.org; Wed, 02 May 2018 20:02:01 +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.89) (envelope-from ) id 1fDxwv-00055k-04 for pgsql-hackers@lists.postgresql.org; Wed, 02 May 2018 20:02:01 +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.89) (envelope-from ) id 1fDxws-0007RB-DE for pgsql-hackers@postgresql.org; Wed, 02 May 2018 20:02:00 +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 w42K1r9v026335; Wed, 2 May 2018 16:01:53 -0400 From: Tom Lane To: Thomas Munro cc: Michael Paquier , Pg Hackers Subject: Re: A few warnings on Windows In-reply-to: References: <20180501083026.GB25848@paquier.xyz> <15083.1525207729@sss.pgh.pa.us> <26880.1525217953@sss.pgh.pa.us> <18264.1525235334@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Wed, 02 May 2018 17:41:32 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26333.1525291313.1@sss.pgh.pa.us> Date: Wed, 02 May 2018 16:01:53 -0400 Message-ID: <26334.1525291313@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Munro writes: > The only remaining warnings on those machines now come from the fact > that our port_win32.h and Perl's XSUB.h both want to define macros to > define macros for libc functions like mkdir etc. plperl.h already > seems to deal with other similar kinds of ugliness. Perhaps if > PG_NEED_PERL_XSUB_H is defined we should undefine port_win32.h's > libc-stealing macros before including it? Either way XSUB.h's > definitions win. That should get us to 0 warnings. See attached (not > tested). Seems reasonable to me. Pushed, we'll see what the buildfarm thinks. regards, tom lane