Simplify checking for xlocale.h

Peter Eisentraut <peter@eisentraut.org>

Commit: 9c2a6c5a5f4b94a93120009e623ae8bd153e6dbb
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2024-10-01T11:23:45Z
Releases: 18.0
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

Files

PathChange+/−
config/c-library.m4 modified +0 −55
configure modified +1 −103
configure.ac modified +1 −3
meson.build modified +1 −32
src/include/c.h modified +3 −0
src/include/pg_config.h.in modified +3 −6
src/include/utils/pg_locale.h modified +0 −3
src/interfaces/ecpg/ecpglib/ecpglib_extern.h modified +0 −3
src/port/chklocale.c modified +0 −4

Discussion