From e35a858bde01ff5994dfc53bc48df1d6f400a065 Mon Sep 17 00:00:00 2001 From: nipos Date: Sat, 25 Feb 2023 21:16:03 +0100 Subject: [PATCH] AK: Remove signbit definition to prevent conflict in FixedPoint --- AK/FixedPoint.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AK/FixedPoint.h b/AK/FixedPoint.h index d80df7d3fd..83605364d9 100644 --- a/AK/FixedPoint.h +++ b/AK/FixedPoint.h @@ -16,6 +16,11 @@ # include #endif +// Solaris' definition of signbit in math_c99.h conflicts with our implementation. +#ifdef AK_OS_SOLARIS +# undef signbit +#endif + namespace AK { // FIXME: this always uses round to nearest break-tie to even