pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Eisentraut <peter@eisentraut.org>
Cc: Nazir Bilal Yavuz <byavuz81@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: C11 / VS 2019
Date: Thu, 10 Jul 2025 14:08:01 -0400
Message-ID: <64ede57c-df0e-4acf-b8ef-cd88afcddaa5@dunslane.net> (raw)
In-Reply-To: <ciaabgt4vy7d35y6ei7s244zinffg4dgyhbu2vsrwdmdgalxl4@qd5lzywiycc4>
References: <46154df9-f514-4d79-89bb-df4af46b1b9f@eisentraut.org>
	<CAN55FZ03ZXUFsxiyR0hzFsrYG-jbQzt8=uoC8b16THu3kU92fg@mail.gmail.com>
	<387476.1751897627@sss.pgh.pa.us>
	<04ab76a3-186c-4a37-8076-e6882ebf9d43@eisentraut.org>
	<399300.1751904079@sss.pgh.pa.us>
	<170d2b54-7fcf-4ea1-b83f-a86b946e1427@dunslane.net>
	<901646.1752003913@sss.pgh.pa.us>
	<39416edb-0139-48d8-81e4-420fbeaf114e@dunslane.net>
	<f6c67dfb-5b6f-41ee-9310-b53ac7adaf84@dunslane.net>
	<1345212.1752091825@sss.pgh.pa.us>
	<ciaabgt4vy7d35y6ei7s244zinffg4dgyhbu2vsrwdmdgalxl4@qd5lzywiycc4>


On 2025-07-09 We 4:51 PM, Andres Freund wrote:
> Hi,
>
> On 2025-07-09 16:10:25 -0400, Tom Lane wrote:
>> Andrew Dunstan<andrew@dunslane.net> writes:
>>>      /*
>>>      To turn off/hide the contents of this file:
>>>        #define
>>>      MICROSOFT_WINDOWS_WINBASE_H_DEFINE_INTERLOCKED_CPLUSPLUS_OVERLOADS 0
>>>      */
>>> I don't think we have any other VS 2019 machines in the buildfarm. I can
>>> try installing VS 2022, which hamerkop seems to be running without
>>> producing the error.
>> That would amount to desupporting VS 2019, which I'm not sure we want
>> to do yet.  I don't have a huge problem with ignoring this warning.
> FWIW, my understanding is that headers like winbase.h aren't part of the
> compiler but part of the "SDK". And there are SDKs targetting different OS
> versions, and different versions can be installed for the same or different
> compiler versions.  So it's quite possible that this is a question of the
> target SDK version, rather than the OS version.
>
> hamerkop:
> C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\um\\windows.h
>
> drongo:
> C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\um\\windows.h
>
>
> And with that trail, I found
>    https://developer.microsoft.com/en-us/windows/downloads/windows-SDK/
>
> which says, about Windows 10 SDK, Version 2104:
>
>      SDK headers have been updated to address errors when compiling using the
>      standard-conformant C preprocessor in the MSVC compiler cl.exe
>      (/Zc:preprocessor, introduced in VS 2019 v16.6).
>
> Which seems likely to describe precisely what we're seeing?


Yeah, installing the latest SDK seems to have done the trick.

> PS: Wonder if we should make the SDK version visible in meson setup...


Maybe.


cheers


andrew

--
Andrew Dunstan
EDB:https://www.enterprisedb.com

view thread (33+ messages)  latest in thread

Message-ID: <64ede57c-df0e-4acf-b8ef-cd88afcddaa5@dunslane.net>
Permalink:  ../64ede57c-df0e-4acf-b8ef-cd88afcddaa5@dunslane.net/
Also on:    postgresql.org/message-id/64ede57c-df0e-4acf-b8ef-cd88afcddaa5@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, andres@anarazel.de, tgl@sss.pgh.pa.us, peter@eisentraut.org, byavuz81@gmail.com, michael@paquier.xyz
  Subject: Re: C11 / VS 2019
  In-Reply-To: <64ede57c-df0e-4acf-b8ef-cd88afcddaa5@dunslane.net>
  References: <46154df9-f514-4d79-89bb-df4af46b1b9f@eisentraut.org> <CAN55FZ03ZXUFsxiyR0hzFsrYG-jbQzt8=uoC8b16THu3kU92fg@mail.gmail.com> <387476.1751897627@sss.pgh.pa.us> <04ab76a3-186c-4a37-8076-e6882ebf9d43@eisentraut.org> <399300.1751904079@sss.pgh.pa.us> <170d2b54-7fcf-4ea1-b83f-a86b946e1427@dunslane.net> <901646.1752003913@sss.pgh.pa.us> <39416edb-0139-48d8-81e4-420fbeaf114e@dunslane.net> <f6c67dfb-5b6f-41ee-9310-b53ac7adaf84@dunslane.net> <1345212.1752091825@sss.pgh.pa.us> <ciaabgt4vy7d35y6ei7s244zinffg4dgyhbu2vsrwdmdgalxl4@qd5lzywiycc4> <64ede57c-df0e-4acf-b8ef-cd88afcddaa5@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