pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Enable MSVC conforming preprocessor
Date: Tue, 01 Jul 2025 07:56:12 +0000
Message-ID: <E1uWVqe-0049mx-13@gemulon.postgresql.org> (raw)

Enable MSVC conforming preprocessor

Switch MSVC to use the conforming preprocessor, using the
/Zc:preprocessor option.

This allows us to drop the alternative implementation of
VA_ARGS_NARGS() for the previous "traditional" preprocessor.

This also prepares the way for enabling C11 mode in the future, which
enables the conforming preprocessor by default.

This now requires Visual Studio 2019.  The installation documentation
is adjusted accordingly.

Discussion: https://www.postgresql.org/message-id/flat/01a69441-af54-4822-891b-ca28e05b215a%40eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8fd9bb1d9654c59d40613232ad964e9a648e4202

Modified Files
--------------
doc/src/sgml/installation.sgml |  8 ++------
meson.build                    |  4 ++++
src/include/c.h                | 19 -------------------
3 files changed, 6 insertions(+), 25 deletions(-)



Message-ID: <E1uWVqe-0049mx-13@gemulon.postgresql.org>
Permalink:  ../E1uWVqe-0049mx-13@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1uWVqe-0049mx-13@gemulon.postgresql.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Enable MSVC conforming preprocessor
  In-Reply-To: <E1uWVqe-0049mx-13@gemulon.postgresql.org>

* 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