Simplify checking for xlocale.h
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 1 Oct 2024 11:16:04 +0000 (07:16 -0400)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 1 Oct 2024 11:23:45 +0000 (07:23 -0400)
commit9c2a6c5a5f4b94a93120009e623ae8bd153e6dbb
treebe7c4eb3891de87b8c51cb330c87255fc2d221c0
parentee4859123e3d47aef8cfe078f7faee2ebcecb613
Simplify checking for xlocale.h

Instead of XXX_IN_XLOCALE_H for several features XXX, let's just
include <xlocale.h> if HAVE_XLOCALE_H.  The reason for the extra
complication was apparently that some old glibc systems also had an
<xlocale.h>, and you weren't supposed to include it directly, but it's
gone now (as far as I can tell it was harmless to do so anyway).

Author: Thomas Munro <thomas.munro@gmail.com>
Discussion: https://postgr.es/m/CWZBBRR6YA8D.8EHMDRGLCKCD%40neon.tech
config/c-library.m4
configure
configure.ac
meson.build
src/include/c.h
src/include/pg_config.h.in
src/include/utils/pg_locale.h
src/interfaces/ecpg/ecpglib/ecpglib_extern.h
src/port/chklocale.c