From: Bruno Haible <bruno@clisp.org>
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=73d82771200aad8d42353eca21e93e86da76de44;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 d3c656a0d1..269293ca79 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-06-02  Bruno Haible  <bruno@clisp.org>
+
+	c-strtod, c-strtof, c-strtold: Fix link error on AIX.
+	* lib/c-strtod.c (newlocale): Undefine before use.
+
 2024-06-02  Bruno Haible  <bruno@clisp.org>
 
 	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.