* lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Don't override on Haiku.
* doc/posix-headers/math.texi: Update.
+2024-09-01 Bruno Haible <bruno@clisp.org>
+
+ math: Remove workaround for an older Haiku bug.
+ * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Don't override on Haiku.
+ * doc/posix-headers/math.texi: Update.
+
2024-09-01 Simon Josefsson <simon@josefsson.org>
Avoid using postal address in license
platforms:
NetBSD 5.1, AIX 5.1, Solaris 9, MSVC 9.
-@item
-The macros @code{FP_ILOGB0} and @code{FP_ILOGBNAN} have wrong values on some
-platforms:
-@c https://dev.haiku-os.org/ticket/18351
-Haiku 2022.
-
@item
@code{HUGE_VAL}, @code{HUGE_VALF}, @code{HUGE_VALL} are not compile time
constants on some platforms:
@item
The macro or variable @code{math_errhandling} is not defined on some platforms:
glibc 2.11, OpenBSD 4.9, NetBSD 5.1, UP-UX 11, Cygwin 1.7.9, mingw, MSVC 9.
+@item
+The macros @code{FP_ILOGB0} and @code{FP_ILOGBNAN} have wrong values on some
+platforms:
+@c https://dev.haiku-os.org/ticket/18351
+Haiku before 2023-04-08.
@end itemize
#endif
-#if defined FP_ILOGB0 && defined FP_ILOGBNAN
- /* Ensure FP_ILOGB0 and FP_ILOGBNAN are correct. */
-# if defined __HAIKU__
- /* Haiku: match what ilogb() does */
-# undef FP_ILOGB0
-# undef FP_ILOGBNAN
-# define FP_ILOGB0 (- 2147483647 - 1) /* INT_MIN */
-# define FP_ILOGBNAN (- 2147483647 - 1) /* INT_MIN */
-# endif
-#else
+#if !(defined FP_ILOGB0 && defined FP_ILOGBNAN)
/* Ensure FP_ILOGB0 and FP_ILOGBNAN are defined. */
# if defined __NetBSD__ || defined __sgi
/* NetBSD, IRIX 6.5: match what ilogb() does */