Enable MSVC conforming preprocessor

Peter Eisentraut <peter@eisentraut.org>

Commit: 8fd9bb1d9654c59d40613232ad964e9a648e4202
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2025-07-01T07:41:40Z
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

Files

PathChange+/−
doc/src/sgml/installation.sgml modified +2 −6
meson.build modified +4 −0
src/include/c.h modified +0 −19

Discussion