postgresql/src
Peter Eisentraut 9c05f152b5 Fixes for C++ typeof implementation
This fixes two bugs in commit 1887d822f1.

First, if we are using the fallback C++ implementation of typeof, then
we need to include the C++ header <type_traits> for
std::remove_reference_t.  This header is also likely to be used for
other C++ implementations of type tricks, so we'll put it into the
global includes.

Second, for the case that the C compiler supports typeof in a spelling
that is not "typeof" (for example, __typeof__), then we need to #undef
typeof in the C++ section to avoid warnings about duplicate macro
definitions.

Reviewed-by: Jelte Fennema-Nio <postgres@jeltef.nl>
Discussion: https://www.postgresql.org/message-id/flat/92f9750f-c7f6-42d8-9a4a-85a3cbe808f3%40eisentraut.org
2026-03-11 11:54:10 +01:00
..
backend Sort out table_open vs. relation_open in rewriter 2026-03-11 09:22:11 +01:00
bin Introduce the REPACK command 2026-03-10 19:56:39 +01:00
common Don't include wait_event.h in pgstat.h 2026-03-06 16:24:58 +01:00
fe_utils pg_dumpall: Fix handling of conflicting options. 2026-03-06 14:00:04 -06:00
include Fixes for C++ typeof implementation 2026-03-11 11:54:10 +01:00
interfaces libpq: Introduce PQAUTHDATA_OAUTH_BEARER_TOKEN_V2 2026-03-06 12:05:51 -08:00
makefiles Restore AIX support. 2026-02-23 13:34:22 -05:00
pl EUC_CN, EUC_JP, EUC_KR, EUC_TW: Skip U+00A0 tests instead of failing. 2026-02-25 18:13:22 -08:00
port Check for memset_explicit() and explicit_memset() 2026-03-02 07:51:19 +01:00
template Restore AIX support. 2026-02-23 13:34:22 -05:00
test Introduce the REPACK command 2026-03-10 19:56:39 +01:00
timezone Use fallthrough attribute instead of comment 2026-02-19 08:51:12 +01:00
tools Require share-exclusive lock to set hint bits and to flush 2026-03-10 19:32:13 -04:00
tutorial Force standard_conforming_strings to always be ON. 2026-01-21 15:08:38 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in tests: Add a test C++ extension module 2026-01-20 16:42:30 +01:00
Makefile.shlib Restore AIX support. 2026-02-23 13:34:22 -05:00
meson.build Update copyright for 2026 2026-01-01 13:24:10 -05:00
nls-global.mk Fix update-po for the PGXS case 2025-10-16 20:21:05 +02:00