Fix macro-redefinition warning introduced by aeb07c55f.
Tom Lane <tgl@sss.pgh.pa.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/timezone/private.h | modified | +2 −0 |
Discussion
- Macro redefinition warning after aeb07c55fab5c17a600b77ffcdc3b71425d6a8e7 3 messages · 2026-07-01