pgsql: Enable MSVC conforming preprocessor

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Enable MSVC conforming preprocessor
Date: 2025-07-01 07:56:12
Message-ID: E1uWVqe-0049mx-13@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2025-07-01 08:28:00 pgsql: doc: TOAST not toast
Previous Message Michael Paquier 2025-07-01 06:48:55 pgsql: xml2: Improve error handling of libxml2 calls