pgsql: Use typeof everywhere instead of compiler specific spellings

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use typeof everywhere instead of compiler specific spellings
Date: 2026-03-06 09:22:45
Message-ID: E1vyROP-002eVD-0w@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Use typeof everywhere instead of compiler specific spellings

We define typeof ourselves as __typeof__ if it does not exist. So
let's actually use that for consistency. The meson/autoconf checks
for __builtin_types_compatible_p still use __typeof__ though, because
there we have not redefined it.

Author: Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>
Discussion: https://www.postgresql.org/message-id/flat/CAGECzQR21OnnKiZO_1rLWO0-16kg1JBxnVq-wymYW0-_1cUNtg(at)mail(dot)gmail(dot)com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e2308350c9b775c0c66099ba16af34757c6b0367

Modified Files
--------------
src/include/c.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2026-03-06 09:49:19 pgsql: doc: Fix capitalization of Unicode
Previous Message Peter Eisentraut 2026-03-06 08:34:21 pgsql: Portable StaticAssertExpr