Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1auN2u-0004pb-9l for pgsql-hackers@arkaria.postgresql.org; Sun, 24 Apr 2016 16:38:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1auN2t-0007a8-Kq for pgsql-hackers@arkaria.postgresql.org; Sun, 24 Apr 2016 16:38:07 +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 1auN1Y-000633-CC for pgsql-hackers@postgresql.org; Sun, 24 Apr 2016 16:36:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1auN1R-00089H-FN for pgsql-hackers@postgresql.org; Sun, 24 Apr 2016 16:36:43 +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 u3OGaVmf025446; Sun, 24 Apr 2016 12:36:31 -0400 From: Tom Lane To: Andrew Dunstan cc: Christian Ullrich , Michael Paquier , Petr Jelinek , Robert Haas , Magnus Hagander , PostgreSQL mailing lists Subject: Re: VS 2015 support in src/tools/msvc In-reply-to: <571CF14B.4060005@dunslane.net> References: <0B77CFCB-0F90-4CAB-8509-7EB391C06D59@chrullrich.net> <570A6A14.6040303@dunslane.net> <570A9FCE.5040201@chrullrich.net> <570ABFA0.4090403@2ndquadrant.com> <57192C59.9090903@dunslane.net> <571BD6D4.9@dunslane.net> <571BED3C.5070! ! 209@dunslane.net> <17239.1461448469@sss.pgh.pa.us> <10891.1461450795@sss.pgh.pa.us> <571C3CA6.5070803@dunslane.net> <571CE6DC.90105! 01@dunslane.net> <9186.1461513523@sss.pgh.pa.us> <571CF14B.40600! 05@dunslane.net> Comments: In-reply-to Andrew Dunstan message dated "Sun, 24 Apr 2016 12:16:11 -0400" Date: Sun, 24 Apr 2016 12:36:31 -0400 Message-ID: <25445.1461515791@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Andrew Dunstan writes: > On 04/24/2016 11:58 AM, Tom Lane wrote: >> Hmm ... does this pragma work on *every* compiler we're going to use >> on Windows? > According to my research it works on all the MSVC versions we support. I > didn't research the others (i.e. gcc), but we already use the pragma in > float.c without ill effect. Isn't the way #pragma works that compilers > that don't understand the particular pragma are just supposed to ignore it? Well, the ones in float.c are guarded by "#if (_MSC_VER >= 1800)" and will therefore not get compiled by any non-MSVC compiler. I don't see any entirely-unprotected #pragma uses in our tree, indicating that we've not depended on any such assumption up to now. Given that the whole file is platform-specific, it may well be fine; I'm just voicing some concern. I suppose the buildfarm will soon tell us if it's not fine, though. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers