From: Bruno Haible Date: Sun, 2 Jun 2024 20:35:23 +0000 (+0200) Subject: c-strtod, c-strtof, c-strtold: Fix link error on AIX. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=fce8c4c03d839340b76c061d56833d2f46c88a28;p=gnulib.git c-strtod, c-strtof, c-strtold: Fix link error on AIX. * lib/c-strtod.c (newlocale): Undefine before use. --- diff --git a/ChangeLog b/ChangeLog index d630164e42..c379de20a3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024-06-02 Bruno Haible + + c-strtod, c-strtof, c-strtold: Fix link error on AIX. + * lib/c-strtod.c (newlocale): Undefine before use. + 2024-06-02 Bruno Haible isnanf, isnand, isnanl: Fix link errors on AIX 7.1 with xlc. diff --git a/lib/c-strtod.c b/lib/c-strtod.c index d7e43ac31b..b3792de409 100644 --- a/lib/c-strtod.c +++ b/lib/c-strtod.c @@ -41,6 +41,9 @@ # define STRTOD strtod #endif +/* Here we don't need the newlocale override that supports gl_locale_name(). */ +#undef newlocale + #if defined LC_ALL_MASK && (HAVE_GOOD_STRTOD_L || HAVE_WORKING_USELOCALE) /* Cache for the C locale object.