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=78f124f5c8c22870c83cb9b694531c7f80b3f134;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 91304c5211..e6a8837480 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 totalorder*: Avoid compilation error by IBM XL C compiler. 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.