]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix build failure with newer ICU
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 1 Jul 2021 08:49:14 +0000 (10:49 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 1 Jul 2021 08:54:44 +0000 (10:54 +0200)
commite7be25039e4923a3a28a708d0cc141136e80546e
treea23766add881b4878124615a921a77e1b36cb389
parentd8569db764503d5436bdfef533036b5ce46f2ca0
Fix build failure with newer ICU

ICU 69 causes compile failures with PostgreSQL 10.  ICU 69 has
switched to using stdbool.h, which conflicts with the home-made
definitions that we used until PostgreSQL 10.  Newer PostgreSQL major
versions are therefore not affected.  (Older PostgreSQL versions don't
have ICU support.)

The workaround is to undefine "bool" after including ICU headers,
similar to the solution already in place for plperl for the same
underlying reasons.

Discussion: https://www.postgresql.org/message-id/flat/28588e5a-c204-0361-01f1-a1ee1b590233%40enterprisedb.com
src/backend/utils/adt/formatting.c
src/backend/utils/adt/pg_locale.c
src/include/utils/pg_locale.h