]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Make typeof and typeof_unqual fallback definitions work on C++11
authorPeter Eisentraut <peter@eisentraut.org>
Sun, 15 Mar 2026 06:36:27 +0000 (07:36 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Sun, 15 Mar 2026 06:36:27 +0000 (07:36 +0100)
commitcd083b54bd675a6c941b2d52f398cebbf95b060f
tree4fdcf28d1ba0af75ef83bfedf3f9c57b44bcebb5
parent0123ce131fca454009439dfa3b2266d1d40737d7
Make typeof and typeof_unqual fallback definitions work on C++11

These macros were unintentionally using C++14 features. This replaces
them with valid C++11 code.

Tested locally by compiling with -std=c++11 (which reproduced the
original issue).

Author: Jelte Fennema-Nio <postgres@jeltef.nl>
Discussion: https://www.postgresql.org/message-id/flat/92f9750f-c7f6-42d8-9a4a-85a3cbe808f3%40eisentraut.org
src/include/c.h