From f4eae4df2a256d0c1bab1657438c2de449cdcd67 Mon Sep 17 00:00:00 2001 From: Lauri Nurmi Date: Tue, 20 Jul 2021 19:28:55 +0300 Subject: [PATCH] Really determine availability of all stdtoxx_l() functions The case of missing strtod_l() is already handled by 9507bc430e (Determine availability of the required xlocale API by compiling, 2017-04-14). Similarly test for all the strto*_l() functions used by wx instead of assuming that they are available if strtod_l() is. It appears that the 'musl' C standard library, used on e.g. Alpine Linux, does have strtod_l(), but not the others. Because of which this check did not properly disable the feature, and compilation would fail. Closes https://github.com/wxWidgets/wxWidgets/pull/2451 --- configure | 2 ++ configure.in | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configure b/configure index 721a1ba735..107a4e5fd1 100755 --- a/configure +++ b/configure @@ -35389,6 +35389,8 @@ main () locale_t t; strtod_l(NULL, NULL, t); + strtol_l(NULL, NULL, 0, t); + strtoul_l(NULL, NULL, 0, t); ; return 0; diff --git a/configure.in b/configure.in index 684b28f6b8..57a7ba4610 100644 --- a/configure.in +++ b/configure.in @@ -6136,6 +6136,8 @@ if test "$wxUSE_XLOCALE" = "yes" ; then [ locale_t t; strtod_l(NULL, NULL, t); + strtol_l(NULL, NULL, 0, t); + strtoul_l(NULL, NULL, 0, t); ], wx_cv_type_locale_t=yes, wx_cv_type_locale_t=no