From fce8c4c03d839340b76c061d56833d2f46c88a28 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 2 Jun 2024 22:35:23 +0200 Subject: [PATCH] c-strtod, c-strtof, c-strtold: Fix link error on AIX. * lib/c-strtod.c (newlocale): Undefine before use. --- ChangeLog | 5 +++++ lib/c-strtod.c | 3 +++ 2 files changed, 8 insertions(+) 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. -- 2.39.5