Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aoW81-0003Ev-M3 for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Apr 2016 13:07:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aoW81-000521-8m for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Apr 2016 13:07:13 +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 1aoW6f-0002ZL-Pl for pgsql-hackers@postgresql.org; Fri, 08 Apr 2016 13:05:49 +0000 Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aoW6Y-00062e-HZ for pgsql-hackers@postgresql.org; Fri, 08 Apr 2016 13:05:48 +0000 Received: from mfilter47-d.gandi.net (mfilter47-d.gandi.net [217.70.178.178]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id E4C52A80BF; Fri, 8 Apr 2016 15:05:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter47-d.gandi.net Received: from relay3-d.mail.gandi.net ([IPv6:::ffff:217.70.183.195]) by mfilter47-d.gandi.net (mfilter47-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id BqfHMT1nE7NE; Fri, 8 Apr 2016 15:05:38 +0200 (CEST) X-Originating-IP: 98.122.164.227 Received: from [192.168.10.146] (unknown [98.122.164.227]) (Authenticated sender: adsend@dunslane.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id D9B18A811D; Fri, 8 Apr 2016 15:05:35 +0200 (CEST) Subject: Re: VS 2015 support in src/tools/msvc To: Christian Ullrich , Michael Paquier References: <56F41EEA.5040105@2ndquadrant.com> <56F53382.3060508@dunslane.net> <56FA9FDF.20108@2ndquadrant.com> <56FB2BF8.3060303@dunslane.net> <5705768E.4020908@dunslane.net> <5706FB7E.5070703@dunslane.net> <570792ED.2080003@chrullrich.net> Cc: Robert Haas , Petr Jelinek , Tom Lane , Magnus Hagander , PostgreSQL mailing lists From: Andrew Dunstan Message-ID: <5707AC9E.7070309@dunslane.net> Date: Fri, 8 Apr 2016 09:05:34 -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: <570792ED.2080003@chrullrich.net> 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 04/08/2016 07:15 AM, Christian Ullrich wrote: > * Michael Paquier wrote: > > > On Fri, Apr 8, 2016 at 9:29 AM, Andrew Dunstan > > 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 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