]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix macro-redefinition warning introduced by aeb07c55f.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 1 Jul 2026 17:44:45 +0000 (13:44 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 1 Jul 2026 17:44:45 +0000 (13:44 -0400)
commit85656c1bef4af031f8e9801d927cdaeaaae95566
tree8f25c9de11a2f197f5ccbf872f2a3b34e1bf8fe5
parent7d3448961da3f8cb5c78b9d58c5e03b6bff53364
Fix macro-redefinition warning introduced by aeb07c55f.

Some platforms provide a definition of unreachable() in standard C
headers, leading to a conflict with unreachable() in the new
timezone code.  It seems best for our purposes to conform to what
pg_unreachable() does, so #undef away the platform version.

Reported-by: Tristan Partin <tristan@partin.io>
Discussion: https://postgr.es/m/DJNDN9UQS9GP.11L4NJ1HHE1ZJ@partin.io
src/timezone/private.h