From 237b7564dc3179f8c2a91820aae3f4c2d8534bcf Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 31 Jan 2024 11:59:09 -0500 Subject: fix compilation issues --- src/math/_tgmath.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/math/_tgmath.h b/src/math/_tgmath.h index 980d3c45..262a59a9 100644 --- a/src/math/_tgmath.h +++ b/src/math/_tgmath.h @@ -1,6 +1,7 @@ #ifndef __NONSTD_TGMATH_H__ #define __NONSTD_TGMATH_H__ #include +#include #include "_safety.h" #ifndef FP_ZERO @@ -41,7 +42,7 @@ #endif #ifndef copysign -#define copysign(_x, _y) (_x < 0 ? -_y : _y) +#define copysign(_x, _y) ((_x) < 0 ? -(_y) : (_y)) #endif #ifndef M_PI -- cgit v1.2.1