mirror of
https://github.com/postgres/postgres.git
synced 2026-07-07 16:50:58 -04:00
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
This commit is contained in:
parent
7d3448961d
commit
85656c1bef
1 changed files with 2 additions and 0 deletions
|
|
@ -184,6 +184,8 @@
|
|||
*/
|
||||
#define INITIALIZE(x) ((x) = 0)
|
||||
|
||||
/* Some platforms provide unreachable(), but let's rely on our own version */
|
||||
#undef unreachable
|
||||
#define unreachable() pg_unreachable()
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue