pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Christian Ullrich <chris@chrullrich.net>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: 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, 8 Apr 2016 09:05:34 -0400
Message-ID: <5707AC9E.7070309@dunslane.net> (raw)
In-Reply-To: <570792ED.2080003@chrullrich.net>
References: <CAB7nPqTTcRGbDxS_RA4CWn1B_KRsvN+FTpct0mTp3v3gRWQ70g@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>
	<CAB7nPqSkMU3F2jV5S6tULnUpJMub-Pqc1t0H=MjOTJZFdw3jDg@mail.gmail.com>
	<CA+TgmoZ1gKfVB2r=nr5zPp9eDbzFcnauvW_awwz1xmJF_RJmBQ@mail.gmail.com>
	<56FA9FDF.20108@2ndquadrant.com>
	<CA+TgmoaRAhFtVuMfrAn9R4aeib0azhj3jb+RC9aQ2z-JTYJsag@mail.gmail.com>
	<CAB7nPqRHbMZ5eW+AcwxgkfoU1odh75osFLJKrKkQn2N1gbiceQ@mail.gmail.com>
	<56FB2BF8.3060303@dunslane.net>
	<CA+TgmoakpqU5uXDTkfaCHesFeW8N_aH5w-e991BfxkcREo7-mg@mail.gmail.com>
	<5705768E.4020908@dunslane.net>
	<5706FB7E.5070703@dunslane.net>
	<CAB7nPqR4QHFRZ1vjMo9Njy49hDAXOAjO+AEGhuCDzmhQJRagAw@mail.gmail.com>
	<570792ED.2080003@chrullrich.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>



On 04/08/2016 07:15 AM, Christian Ullrich wrote:
> * Michael Paquier wrote:
>
> > On Fri, Apr 8, 2016 at 9:29 AM, Andrew Dunstan <andrew@dunslane.net> 
> > wrote:
>
>>> Not out of the woods yet. Attached is what I got from VS2015 on a 
>>> fresh W10
>>> VM, with Michael's patch 0002 and 0004 applied.
>>
>> Interesting, I have no idea what we are doing differently, and seeing
>> those errors it seems to me that Petr and I are actually getting it
>> wrong for some reason, because GetLocaleInfoEx should need a direct
>> declaration of windows.h. And similarly to some of the other files in
>> src/port I think that we should have it. Do you still get failures if
>> you add the following thing at the top of chklocale.c?
>>
>> #if defined(WIN32) && (_MSC_VER >= 1900)
>> #include "windows.h"
>> #endif
>>
>> Looking at the docs
>> (https://msdn.microsoft.com/en-us/library/windows/desktop/dd318103%28v=vs.85%29.aspx), 
>>
>> winnls.h would be enough, but I'd rather be consistent with the
>> approach taken by the other files.
>
> GetLocaleInfoEx() is covered by #if (WINVER >= 0x0600), we define 
> _WIN32_WINNT as 0x0501 (src/include/port/win32.h) and WINVER inherits 
> that value.
>
> Michael, none of your patches change this, so how does it ever build 
> on your system?
>
> MSDN also says this about the function: "Header: winnls.h (include 
> windows.h)"; so there's probably something else needed to make it work 
> that is not in <winnls.h> alone.


OK, at this stage it appears to me that if today is the deadline for 
getting this in for 9.6 then it's going to be missed.

And no, Michael's suggested inclusion didn't help, probably for the 
reasons Christian suggests.

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: <5707AC9E.7070309@dunslane.net>
Permalink:  ../5707AC9E.7070309@dunslane.net/
Also on:    postgresql.org/message-id/5707AC9E.7070309@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, chris@chrullrich.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: <5707AC9E.7070309@dunslane.net>
  References: <CAB7nPqTTcRGbDxS_RA4CWn1B_KRsvN+FTpct0mTp3v3gRWQ70g@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> <CAB7nPqSkMU3F2jV5S6tULnUpJMub-Pqc1t0H=MjOTJZFdw3jDg@mail.gmail.com> <CA+TgmoZ1gKfVB2r=nr5zPp9eDbzFcnauvW_awwz1xmJF_RJmBQ@mail.gmail.com> <56FA9FDF.20108@2ndquadrant.com> <CA+TgmoaRAhFtVuMfrAn9R4aeib0azhj3jb+RC9aQ2z-JTYJsag@mail.gmail.com> <CAB7nPqRHbMZ5eW+AcwxgkfoU1odh75osFLJKrKkQn2N1gbiceQ@mail.gmail.com> <56FB2BF8.3060303@dunslane.net> <CA+TgmoakpqU5uXDTkfaCHesFeW8N_aH5w-e991BfxkcREo7-mg@mail.gmail.com> <5705768E.4020908@dunslane.net> <5706FB7E.5070703@dunslane.net> <CAB7nPqR4QHFRZ1vjMo9Njy49hDAXOAjO+AEGhuCDzmhQJRagAw@mail.gmail.com> <570792ED.2080003@chrullrich.net> <5707AC9E.7070309@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