Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ajRBK-0004TJ-Ma for pgsql-hackers@arkaria.postgresql.org; Fri, 25 Mar 2016 12:49:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ajRBK-00029k-8s for pgsql-hackers@arkaria.postgresql.org; Fri, 25 Mar 2016 12:49:38 +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 1ajR9y-0008Um-0Q for pgsql-hackers@postgresql.org; Fri, 25 Mar 2016 12:48:14 +0000 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ajR9u-00016b-L9 for pgsql-hackers@postgresql.org; Fri, 25 Mar 2016 12:48:13 +0000 Received: from mfilter26-d.gandi.net (mfilter26-d.gandi.net [217.70.178.154]) by relay6-d.mail.gandi.net (Postfix) with ESMTP id EF06AFB8A9; Fri, 25 Mar 2016 13:48:06 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter26-d.gandi.net Received: from relay6-d.mail.gandi.net ([IPv6:::ffff:217.70.183.198]) by mfilter26-d.gandi.net (mfilter26-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id DnCc84ALBkAW; Fri, 25 Mar 2016 13:48:05 +0100 (CET) X-Originating-IP: 98.122.164.227 Received: from [192.168.10.146] (unknown [98.122.164.227]) (Authenticated sender: adsend@dunslane.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 8D958FB887; Fri, 25 Mar 2016 13:48:03 +0100 (CET) Subject: Re: VS 2015 support in src/tools/msvc To: Michael Paquier , Robert Haas References: <15559.1457156815@sss.pgh.pa.us> <56DAEE74.3010604@dunslane.net> <56DB47A5.7040502@dunslane.net> <56DEEF92.4020507@dunslane.net> <9775.1457451803@sss.pgh.pa.us> <56DEF8B6.8070205@dunslane.net> <56EDDB60.4060506@dunslane.net> <56EEEF45.1000708@dunslane.net> <56F41EEA.5040105@2ndquadrant.com> Cc: Petr Jelinek , Tom Lane , Magnus Hagander , PostgreSQL mailing lists From: Andrew Dunstan Message-ID: <56F53382.3060508@dunslane.net> Date: Fri, 25 Mar 2016 08:48:02 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 On 03/25/2016 08:31 AM, Michael Paquier wrote: > On Fri, Mar 25, 2016 at 9:09 PM, Robert Haas wrote: >> On Thu, Mar 24, 2016 at 1:07 PM, Petr Jelinek wrote: >>> On 24/03/16 17:28, Robert Haas wrote: >>>> On Wed, Mar 23, 2016 at 3:17 AM, Michael Paquier >>>> wrote: >>>>> - 0001 fixes the global declarations of TIMEZONE_GLOBAL and >>>>> TZNAME_GLOBAL to be WIN32-compliant. I got bitten by that in the ECPG >>>>> compilation. >>>> So this isn't going to break other Windows builds? I mean, if we've >>>> got the names for those symbols wrong, how is this working right now? >>>> >>> We didn't older versions just defined the other variants as well, but the >>> _timezone and _tzname have been around since at least VS2003. >> I am unable to parse this sentence. Sorry. > Petr means that both _timezone and _tzname are objects defined in > Visual Studio since more or less its 2003 release > (https://msdn.microsoft.com/en-us/library/htb3tdkc%28v=vs.71%29.aspx). > The oldest version on the buildfarm is Visual Studio 2005, and I agree > with him that there is no need to worry about older versions than > VS2003. The issue is that VS2015 does *not* define timezone and tzname > (please note the prefix underscore missing in those variable names), > causing compilation failures. That's why I am suggesting such a change > in this patch: this will allow the code to compile on VS2015, and > that's compatible with VS2003~. OK, sounds good. I don't have a spare machine on which to install VS2015, nor time to set one up, so I'm going to have to trust the two of you (Michael and Petr) that this works. Will either of you be setting up a buildfarm animal with VS2015? cheers andrew -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers