diff options
author | Thomas Munro | 2023-07-08 23:55:03 +0000 |
---|---|---|
committer | Thomas Munro | 2023-07-08 23:55:18 +0000 |
commit | 8d9a9f034e925568342c7ccfd8d351a3cd20e7f3 (patch) | |
tree | 83a10a9ce2044e613c66dc8cd5275840f9629ced /configure | |
parent | e9f15bc9db7564a29460d089c0917590bc13fffc (diff) |
All supported systems have locale_t.
locale_t is defined by POSIX.1-2008 and SUSv4, and available on all
targeted systems. For Windows, win32_port.h redirects to a partial
implementation called _locale_t. We can now remove a lot of
compile-time tests for HAVE_LOCALE_T, and associated comments and dead
code branches that were needed for older computers.
Since configure + MinGW builds didn't detect locale_t but now we assume
that all systems have it, further inconsistencies among the 3 Windows build
systems were revealed. With this commit, we no longer define
HAVE_WCSTOMBS_L and HAVE_MBSTOWCS_L on any Windows build system, but
we have logic to deal with that so that replacements are available where
appropriate.
Reviewed-by: Noah Misch <[email protected]>
Reviewed-by: Tristan Partin <[email protected]>
Reviewed-by: Peter Eisentraut <[email protected]>
Discussion: https://postgr.es/m/CA%2BhUKGLg7_T2GKwZFAkEf0V7vbnur-NfCjZPKZb%3DZfAXSV1ORw%40mail.gmail.com
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/configure b/configure index c4463cb17a6..842ef855fc6 100755 --- a/configure +++ b/configure @@ -15120,11 +15120,6 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_locale_t" >&5 $as_echo "$pgac_cv_type_locale_t" >&6; } -if test "$pgac_cv_type_locale_t" != no; then - -$as_echo "#define HAVE_LOCALE_T 1" >>confdefs.h - -fi if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then $as_echo "#define LOCALE_T_IN_XLOCALE 1" >>confdefs.h |