]> Savannah Git Hosting - gnulib.git/commitdiff
math: Fix HUGE_VAL and HUGE_VALL on AIX.
authorBruno Haible <bruno@clisp.org>
Mon, 5 Aug 2024 23:05:05 +0000 (01:05 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 5 Aug 2024 23:05:05 +0000 (01:05 +0200)
* lib/math.in.h (HUGE_VAL, HUGE_VALL): Override on AIX.
* doc/posix-headers/math.texi: Mention this AIX problem.

ChangeLog
doc/posix-headers/math.texi
lib/math.in.h

index 23f13aed617a175bcd786e4f887b28fd82d55407..1dd9a5433907cdba6e99757c4221af0a30a9e523 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
index 92b4d1b1723e26b04189bf48464d2ca3d87f817c..6f07b1e58c6616511d44d3182cc5301fdc93b1f9 100644 (file)
@@ -45,7 +45,7 @@ Haiku 2022.
 @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
index 7730efb7f5b168eb97557728c70348901bdd7f5b..7b1302d8831614ed3f36c70f3a26db766ab9b9fc 100644 (file)
@@ -223,7 +223,7 @@ _NaN ()
 #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.  */
@@ -236,7 +236,7 @@ _NaN ()
 #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.  */