Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uZvgp-00AXKj-KO for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Jul 2025 18:08:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uZvgn-00Fp5g-Lr for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Jul 2025 18:08:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uZvgm-00Fp5Y-Tm for pgsql-hackers@lists.postgresql.org; Thu, 10 Jul 2025 18:08:09 +0000 Received: from mail-qt1-x832.google.com ([2607:f8b0:4864:20::832]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uZvgl-006cAi-0P for pgsql-hackers@postgresql.org; Thu, 10 Jul 2025 18:08:08 +0000 Received: by mail-qt1-x832.google.com with SMTP id d75a77b69052e-4a5903bceffso15648711cf.3 for ; Thu, 10 Jul 2025 11:08:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dunslane-net.20230601.gappssmtp.com; s=20230601; t=1752170884; x=1752775684; darn=postgresql.org; h=in-reply-to:autocrypt:content-language:from:references:cc:to :subject:user-agent:mime-version:date:message-id:from:to:cc:subject :date:message-id:reply-to; bh=KpY6SQWmbYId6SOTnFJDLbGPqf3/Ysva1bi5uuhRJuM=; b=19t+6UcFiaVNRuKEdWEBx/t1jkwaBfCVCmm1MI5pCnxRoe99+goTLFFxZ2EV8DH15n Eg3VewrTn0yRxCOoBqtRxQQ8r7pIc+w3wI1PRqZKqq7EGOHAXjytIzHe/uiD7bxHVm7F Eq4kzZwBc7zEKNQZhRxNyGeSqY5aY6+66Tj/2et7E3PnGJTC4zn7fQHk57DKYSMWFxwT H8RKKpUKibQPei8fyyAKFxoVz+lvJ6SEuYfsLEl2YC/YXYN/lzhZQvDh0yUvjurlE1Wv bae1ye56BTZSa31mD+J6TpZ0hu3fHDS0+47mvO4wnSbNgQd+LPwXScYTKQU7omKYg+Ti FruA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752170884; x=1752775684; h=in-reply-to:autocrypt:content-language:from:references:cc:to :subject:user-agent:mime-version:date:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=KpY6SQWmbYId6SOTnFJDLbGPqf3/Ysva1bi5uuhRJuM=; b=fK9MQQ+Iw/sm9aMEFitLRRsn5GEvmjZBemLyrsrUaqxJxbw1BGheFaKM4vCe3geqdw 238h0XneT0utRET2yCbSEJs0azhFh4wEfVdkhJE2NCuv0T02AbnzYMcB+TlmQoEskla/ 7BjoHuHE7lF1Qkpc2WaRzQwvMMcLFxG+jQ1HWdFfQFKM/6StuGlhvfjqa19Ys/JZ2aZi zsRpleOlm0TJjFkytLH5zDe0iS9/PEyN0QZL2KsR0RKEMwby6sMungbtvgfs9Q1O6MWD TXeZhSj3PCyV9HY1V+RJpigesPeR/gqMwS8ZlDoZJytL+RitODsj7baHqc+japFKu7Cq wwzQ== X-Forwarded-Encrypted: i=1; AJvYcCVqwkS3jJcbaRkJTU6Kkf1qO2AYbRn5vqiC2WifEWDu2uGZmf45ybrZKskmVNUePFh2eGs1grQAyn7eFU77@postgresql.org X-Gm-Message-State: AOJu0YxJ8bRpNfmnsF/hTJncJaqmM/NKSkYWFVLL/nozWWvtPKqDFLaz jHjZfGQGZdAs8WAdsMEGKcriAE2eYwR4XnxlrmFzC1x2K4vgx2apg4NMFO8sBKeHTBg= X-Gm-Gg: ASbGncs0Q+KisTd87J4Fb4rcEKzG1ah4nduV4VwPcbkGp9vzrsa/e4SbnCSXtxhRXUC rJMc6kJJAGjnl4zagSI2RSPa7Bba63f/K/6xLWzwZUa6M2wwx8mLLN1BFsaTJALyCjZY/PU5aA2 D4iEAh35ehk77K9d2IyUz+LxoqYUQCTFQq+Ce2mzaBylC4o+CgmkK/o61mE1FvWRTkEAhATAVZL Ap2j/GOxmFOIwuTzUcFMWIB35goKuhJFxz1pG61DzujuJrD8z16yf2dvFRte9gAwqErJ7Y1mngF u5AuJ7rol+ANaRXjvMUJQm7QGZBZ03nlbEGe/3Mz9ZEP4LV/gHY2oh+0Gwn15mxeVQWUlA== X-Google-Smtp-Source: AGHT+IHlqfwKj2X2WRALfqk85Nm83cH12njSuvaBrChrgljohQlF3woVjdVh8O6Sswo+StSX3qdK4w== X-Received: by 2002:ac8:5f53:0:b0:494:abde:2aa3 with SMTP id d75a77b69052e-4a9fb935d93mr6287731cf.18.1752170884053; Thu, 10 Jul 2025 11:08:04 -0700 (PDT) Received: from ?IPV6:2605:a601:a6b0:500::1cb? ([2605:a601:a6b0:500::1cb]) by smtp.googlemail.com with ESMTPSA id d75a77b69052e-4a9edf08006sm11417261cf.69.2025.07.10.11.08.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Jul 2025 11:08:03 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------9I6QADnBasqlezL5SJ7P0pPo" Message-ID: <64ede57c-df0e-4acf-b8ef-cd88afcddaa5@dunslane.net> Date: Thu, 10 Jul 2025 14:08:01 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: C11 / VS 2019 To: Andres Freund , Tom Lane Cc: Peter Eisentraut , Nazir Bilal Yavuz , Michael Paquier , pgsql-hackers References: <46154df9-f514-4d79-89bb-df4af46b1b9f@eisentraut.org> <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> <1345212.1752091825@sss.pgh.pa.us> From: Andrew Dunstan Content-Language: en-US Autocrypt: addr=andrew@dunslane.net; keydata= xsBNBE7KWFkBCAClridxur2AIc7eW2AR7izbfp3EnNefie2HbLF0izW5Ik5UjX2HBXBx4syI gY6b0ugohXrr274+baoAlvSbq6cAoQuEVrk5IZFzt20b1Xkx65FwGSEj526yiKLocqkJceSq Xr9xcA5SGY+FZv441chh5SU92v4q6z+6LPpoHOh97ptAVXZYNTtU0LevyvD5lja0TzbvJm6C eFXitJfnm1pLEr0DGJCR/iUOl/N62Kh4855zZC7NHIjQHPOvV5Stz/l5ilDhvGVk+xkXFPys SjZoUr1rXhYLpiyi5sR0X9FHXT0KnGuz1F5ERO7ZTLSSQ6fJwPj6gOk9K+vvoKvoeql5ABEB AAHNJEFuZHJldyBEdW5zdGFuIDxhbmRyZXdAZHVuc2xhbmUubmV0PsLAlwQTAQgAQQIbAwIX gAIZAQULCQgHAwUVCgkICwUWAgMBAAIeBRYhBOQ+WEYd/Hy/RGkVpZn6f8tZ/DuBBQJoGNGd BQkdEO8nAAoJEJn6f8tZ/DuBq74H/jkTR4Zi3stbw+xC7v2u3QozssK7MYPL2AsVfh7OealS h182fiWXpfvmmAB7WUHbhk9GC2RAOnHI/2d2jgKaMLAHsGYOT0YopTVIwRY43fCw/mK67yxc wmDcX+zyKfLaivNbf5A7QPLNwda98bEAMSJ8Sn652Uc6cA8t3uKGsVzbRBQOoYzjgvBCfSrE 9ql3PDNg0l4BfAqabd2f70ZUm9VAMEPrgv/v2xI7M2XiL4g5BVmqLCOwxLM8RMCotCuoweUr VO43DeBCIDwLxotMJKvGWDjBzQYlU1NPUAtNcz/gN9ITUe1VUGjyvGj4u1lxBOcQQUw7l1+T 5moZ4iZxXzvOwE0ETspYWQEIANGc4zQULOxhbqO2dyD51YhqCNRmm9oKWaqf+wmW4tpDe/VV cxAnNizd4LWCHfzpb5cHAtGkOPePMfzWVf6nvdF7d3eglbtf59+zG7O7llV0xSSoFiieQBsr GvqDInXYX/4mRRXMtyhM353/tixC9RWLs1oofyYmCPPXXY7h9R7en3B8BoVrRFcdzlIY/NFN hFGW/9dkEiGjgna2Rk6e15kln4ZvFBWUg23p93w/pqXcxY6+k/8TEk+C4R+M6w7o2PLGOjdZ +kPiUcw5H85zf/yZJwQXzisXaNduwWB6Vads9YC9dj6kPR1c4VGRqAaYL++LAEOqrlvm2Tvq QqZRtnEAEQEAAcLAfAQYAQgAJgIbDBYhBOQ+WEYd/Hy/RGkVpZn6f8tZ/DuBBQJoGNI2BQkd EODdAAoJEJn6f8tZ/DuBfw0IAKTsfD40teP/pp+bsLLMSxPXUYrrprTj7WFB5v61p6dkpSr/ qXmMlyahdxQFaPmfVgVirB1Vk/kHiWNnnGjfUV9nB2Zg9LI0Xb9/ts3LsUiRWXzG3tkMY6XL vsVOxW4XFRND9l2q+WW93aZ1DZl+fqWfYgMvsusFRhmGFOKTRfKPta2Pkv+AhA24N4+PrR5p bU4k2MO8PAGiK8eaYKGFG1bHKuAvoDoF7WXJ3FHxuWqLnKEt4dfOLm5pAe3zq1Lt6q8azT9i QWGpSAK5vQUWQHBHpiDjdPeqKZ6HiAXIIKfSmb+jrvXBqoP+D6/K7rUjG2aXiRtTIAXms9sm VRu7cmw= In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------9I6QADnBasqlezL5SJ7P0pPo Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 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 --------------9I6QADnBasqlezL5SJ7P0pPo Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit


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
--------------9I6QADnBasqlezL5SJ7P0pPo--