From b25813c445bb74d7592c117e20cec7eb3bcb5a32 Mon Sep 17 00:00:00 2001 From: Joe Ramsay <78039542+joeramsay@users.noreply.github.com> Date: Tue, 12 Dec 2023 09:19:20 +0000 Subject: [PATCH] Remove warning about M_PIf redefinition (#490) --- src/libm-tester/testerutil.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libm-tester/testerutil.h b/src/libm-tester/testerutil.h index 313bf7b2..4c3564e9 100644 --- a/src/libm-tester/testerutil.h +++ b/src/libm-tester/testerutil.h @@ -11,7 +11,9 @@ #define POSITIVE_INFINITYf ((float)INFINITY) #define NEGATIVE_INFINITYf (-(float)INFINITY) -#define M_PIf ((float)M_PI) +#ifndef M_PIf +# define M_PIf ((float)M_PI) +#endif extern int enableFlushToZero; double flushToZero(double y);