pgsql: Enable MSVC conforming preprocessor - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Enable MSVC conforming preprocessor
Date
Msg-id E1uWVqe-0049mx-13@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: xml2: Improve error handling of libxml2 calls
Next
From: Peter Eisentraut
Date:
Subject: pgsql: doc: TOAST not toast