From 73d82771200aad8d42353eca21e93e86da76de44 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 d3c656a0d1..269293ca79 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 4089ccd79b..ae74a5bd4d 100644 --- a/lib/c-strtod.c +++ b/lib/c-strtod.c @@ -47,6 +47,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