* lib/math.in.h (HUGE_VAL, HUGE_VALL): Override on AIX.
* doc/posix-headers/math.texi: Mention this AIX problem.
+2024-08-05 Bruno Haible <bruno@clisp.org>
+
+ math: Fix HUGE_VAL and HUGE_VALL on AIX.
+ * lib/math.in.h (HUGE_VAL, HUGE_VALL): Override on AIX.
+ * doc/posix-headers/math.texi: Mention this AIX problem.
+
2024-08-05 Bruno Haible <bruno@clisp.org>
xstrtol, xstrtoll tests: Fix test failures.
@item
@code{HUGE_VAL}, @code{HUGE_VALF}, @code{HUGE_VALL} are not compile time
constants on some platforms:
-FreeBSD 5.2.
+FreeBSD 5.2, AIX 7.1.
@item
@code{INFINITY} and @code{NAN} are not compile time constants
#endif
/* HUGE_VAL is a 'double' Infinity. */
-#if !defined HUGE_VAL || (defined __FreeBSD__ && __FreeBSD__ < 6)
+#if !defined HUGE_VAL || (defined __FreeBSD__ && __FreeBSD__ < 6) || defined _AIX
# undef HUGE_VAL
# if defined _MSC_VER
/* The Microsoft MSVC 9 compiler chokes on the expression 1.0 / 0.0. */
#endif
/* HUGE_VALL is a 'long double' Infinity. */
-#if !defined HUGE_VALL || (defined __FreeBSD__ && __FreeBSD__ < 6)
+#if !defined HUGE_VALL || (defined __FreeBSD__ && __FreeBSD__ < 6) || defined _AIX
# undef HUGE_VALL
# if defined _MSC_VER
/* The Microsoft MSVC 9 compiler chokes on the expression 1.0L / 0.0L. */