summaryrefslogtreecommitdiff
path: root/src/port
diff options
context:
space:
mode:
authorPeter Eisentraut2024-10-01 11:16:04 +0000
committerPeter Eisentraut2024-10-01 11:23:45 +0000
commit9c2a6c5a5f4b94a93120009e623ae8bd153e6dbb (patch)
treebe7c4eb3891de87b8c51cb330c87255fc2d221c0 /src/port
parentee4859123e3d47aef8cfe078f7faee2ebcecb613 (diff)
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 <[email protected]> Discussion: https://postgr.es/m/CWZBBRR6YA8D.8EHMDRGLCKCD%40neon.tech
Diffstat (limited to 'src/port')
-rw-r--r--src/port/chklocale.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/port/chklocale.c b/src/port/chklocale.c
index 9506cd87ed8..afdbd9c875b 100644
--- a/src/port/chklocale.c
+++ b/src/port/chklocale.c
@@ -23,10 +23,6 @@
#include <langinfo.h>
#endif
-#ifdef LOCALE_T_IN_XLOCALE
-#include <xlocale.h>
-#endif
-
#include "mb/pg_wchar.h"