From: Bruno Haible <bruno@clisp.org> Date: Sun, 1 Sep 2024 16:09:28 +0000 (+0200) Subject: math: Remove workaround for an older Haiku bug. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=0e7ca7ba16edc6df0a124fdbe2631a86c7782e01;p=gnulib.git math: Remove workaround for an older Haiku bug. * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Don't override on Haiku. --- diff --git a/ChangeLog b/ChangeLog index 35592dd953..f6fab69fb8 100644 --- 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. diff --git a/lib/math.in.h b/lib/math.in.h index 3b0a41b1d4..8fadcc886f 100644 --- a/lib/math.in.h +++ b/lib/math.in.h @@ -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 */