Simplify checking for xlocale.h
Peter Eisentraut <peter@eisentraut.org>
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
| Path | Change | +/− |
|---|---|---|
| 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
- On non-Windows, hard depend on uselocale(3) 49 messages · 2023-11-15 → 2026-02-04