pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Michael Paquier <michael.paquier@gmail.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Petr Jelinek <petr@2ndquadrant.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Subject: Re: VS 2015 support in src/tools/msvc
Date: Fri, 25 Mar 2016 08:48:02 -0400
Message-ID: <56F53382.3060508@dunslane.net> (raw)
In-Reply-To: <CAB7nPqTEkqF7E7nWcdQSvyOUAV3OGjX=rKSxFTkk03TOJGF5ng@mail.gmail.com>
References: <CAB7nPqTTcRGbDxS_RA4CWn1B_KRsvN+FTpct0mTp3v3gRWQ70g@mail.gmail.com>
	<15559.1457156815@sss.pgh.pa.us>
	<56DAEE74.3010604@dunslane.net>
	<CAB7nPqSuzGoZPvCUhbDFTkmsD9z6oLAaHeB-yc7_Qb4sh_f-fg@mail.gmail.com>
	<56DB47A5.7040502@dunslane.net>
	<CAB7nPqSOL9vLmaecT+SDhkFTOje8erdnvC-KT+dH9_bBQsV5zg@mail.gmail.com>
	<CAB7nPqRSsrn5etFDEJ+VrWcoxFee8WRBteSgwobKocKQJUFC_A@mail.gmail.com>
	<56DEEF92.4020507@dunslane.net>
	<9775.1457451803@sss.pgh.pa.us>
	<56DEF8B6.8070205@dunslane.net>
	<CAB7nPqT5oGZEZawKZVjxuT=C5QEK_eUfc1J7KNpCbv5rCtr0+g@mail.gmail.com>
	<56EDDB60.4060506@dunslane.net>
	<CAB7nPqTp01tWAA1NXfw6Qc9r0bEdeOZxsoypg_JHhFD7+OhHYQ@mail.gmail.com>
	<56EEEF45.1000708@dunslane.net>
	<CAB7nPqS6JcQeFwurY4A9yznOaFv36NsoErfBQCGZNcShtU5OAw@mail.gmail.com>
	<CA+TgmoZvG9hiTAY6upq=q1eqJLmXsVq1oJQn4dRc37yRS32u6w@mail.gmail.com>
	<56F41EEA.5040105@2ndquadrant.com>
	<CA+TgmobzFi-AZ+OxFOxG=AjUs=dWw3Vjt-dH4NKXiJ1jEXmAeA@mail.gmail.com>
	<CAB7nPqTEkqF7E7nWcdQSvyOUAV3OGjX=rKSxFTkk03TOJGF5ng@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>



On 03/25/2016 08:31 AM, Michael Paquier wrote:
> On Fri, Mar 25, 2016 at 9:09 PM, Robert Haas <robertmhaas@gmail.com> wrote:
>> On Thu, Mar 24, 2016 at 1:07 PM, Petr Jelinek <petr@2ndquadrant.com> wrote:
>>> On 24/03/16 17:28, Robert Haas wrote:
>>>> On Wed, Mar 23, 2016 at 3:17 AM, Michael Paquier
>>>> <michael.paquier@gmail.com> 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



view thread (134+ messages)  latest in thread

Message-ID: <56F53382.3060508@dunslane.net>
Permalink:  ../56F53382.3060508@dunslane.net/
Also on:    postgresql.org/message-id/56F53382.3060508@dunslane.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: andrew@dunslane.net, michael.paquier@gmail.com, robertmhaas@gmail.com, petr@2ndquadrant.com, tgl@sss.pgh.pa.us, magnus@hagander.net
  Subject: Re: VS 2015 support in src/tools/msvc
  In-Reply-To: <56F53382.3060508@dunslane.net>
  References: <CAB7nPqTTcRGbDxS_RA4CWn1B_KRsvN+FTpct0mTp3v3gRWQ70g@mail.gmail.com> <56DAEE74.3010604@dunslane.net> <CAB7nPqSuzGoZPvCUhbDFTkmsD9z6oLAaHeB-yc7_Qb4sh_f-fg@mail.gmail.com> <56DB47A5.7040502@dunslane.net> <CAB7nPqSOL9vLmaecT+SDhkFTOje8erdnvC-KT+dH9_bBQsV5zg@mail.gmail.com> <CAB7nPqRSsrn5etFDEJ+VrWcoxFee8WRBteSgwobKocKQJUFC_A@mail.gmail.com> <56DEEF92.4020507@dunslane.net> <9775.1457451803@sss.pgh.pa.us> <56DEF8B6.8070205@dunslane.net> <CAB7nPqT5oGZEZawKZVjxuT=C5QEK_eUfc1J7KNpCbv5rCtr0+g@mail.gmail.com> <56EDDB60.4060506@dunslane.net> <CAB7nPqTp01tWAA1NXfw6Qc9r0bEdeOZxsoypg_JHhFD7+OhHYQ@mail.gmail.com> <56EEEF45.1000708@dunslane.net> <CAB7nPqS6JcQeFwurY4A9yznOaFv36NsoErfBQCGZNcShtU5OAw@mail.gmail.com> <CA+TgmoZvG9hiTAY6upq=q1eqJLmXsVq1oJQn4dRc37yRS32u6w@mail.gmail.com> <56F41EEA.5040105@2ndquadrant.com> <CA+TgmobzFi-AZ+OxFOxG=AjUs=dWw3Vjt-dH4NKXiJ1jEXmAeA@mail.gmail.com> <CAB7nPqTEkqF7E7nWcdQSvyOUAV3OGjX=rKSxFTkk03TOJGF5ng@mail.gmail.com> <56F53382.3060508@dunslane.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox