From 4ecea42fb038f10dd7bb56976a4cf98c12beb0b2 Mon Sep 17 00:00:00 2001 From: Petar Popovic Date: Sun, 17 Mar 2024 18:43:25 +0100 Subject: [PATCH] testautomation_math.c: use isinf(V) instead of fpclassify(V) == FP_INFINITE Using fpclassify can cause a linker error. Using isinf instead fixes this. --- test/testautomation_math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testautomation_math.c b/test/testautomation_math.c index 1f2dbde1c..a799f691e 100644 --- a/test/testautomation_math.c +++ b/test/testautomation_math.c @@ -25,7 +25,7 @@ #define EULER M_E #endif -#define IS_INFINITY(V) fpclassify(V) == FP_INFINITE +#define IS_INFINITY(V) isinf(V) /* Square root of 3 (used in atan2) */ #define SQRT3 1.7320508075688771931766041234368458390235900878906250