Re: ICU bool problem - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: ICU bool problem
Date
Msg-id 20210517210116.GB32199@momjian.us
Whole thread Raw
In response to ICU bool problem  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Responses Re: ICU bool problem
List pgsql-hackers
On Mon, May 17, 2021 at 10:56:54PM +0200, Peter Eisentraut wrote:
> The fix is like what we used to use for plperl back then:
> 
> diff --git a/src/include/utils/pg_locale.h b/src/include/utils/pg_locale.h
> index f3e04d4d8c..499ada2b69 100644
> --- a/src/include/utils/pg_locale.h
> +++ b/src/include/utils/pg_locale.h
> @@ -17,6 +17,9 @@
>  #endif
>  #ifdef USE_ICU
>  #include <unicode/ucol.h>
> +#ifdef bool
> +#undef bool
> +#endif
>  #endif
> 
>  #include "utils/guc.h"
> 
> I'll prepare a full patch in a bit.

Yes, that seems like a good plan.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  If only the physical world exists, free will is an illusion.




pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: ICU bool problem
Next
From: Justin Pryzby
Date:
Subject: Re: Move pg_attribute.attcompression to earlier in struct for reduced size?