]> Savannah Git Hosting - gnulib.git/commitdiff
c-strtod, c-strtof, c-strtold: Fix link error on AIX.
authorBruno Haible <bruno@clisp.org>
Sun, 2 Jun 2024 20:35:23 +0000 (22:35 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 2 Jun 2024 20:35:23 +0000 (22:35 +0200)
* lib/c-strtod.c (newlocale): Undefine before use.

ChangeLog
lib/c-strtod.c

index d3c656a0d14235075186f8bf6718673f4161714f..269293ca79ce4fbbf5c110155e88b41d2152ba38 100644 (file)
--- 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.
index 4089ccd79b8a8fbeb58f22472e85bf679cb8fdec..ae74a5bd4d7dea00b2ec892d4e180c1d076b6ccc 100644 (file)
@@ -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.