]> Savannah Git Hosting - gnulib.git/commitdiff
math: Remove workaround for an older Haiku bug.
authorBruno Haible <bruno@clisp.org>
Sun, 1 Sep 2024 16:09:28 +0000 (18:09 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 17 Sep 2024 13:52:14 +0000 (15:52 +0200)
* lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Don't override on Haiku.

ChangeLog
lib/math.in.h

index 35592dd9534ed51019eb1ca4424ab770de9518db..f6fab69fb81967120ec8ee272170a35391a9717d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
 2024-09-01  Bruno Haible  <bruno@clisp.org>
 
        Fix mbscasestr test failure on native Windows with MSVC.
index 3b0a41b1d4b151df757446f0a72f4cd251a4383a..8fadcc886f67fe85475b156f6227199336ccf79e 100644 (file)
@@ -227,16 +227,7 @@ _NaN ()
 #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 */