summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-15 16:36:15 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-15 16:36:15 -0400
commit71add00413c442205d585c33b09555075b42c023 (patch)
tree10515629a3c5e0b235df66629eb4c859b19e2a1b
parent23207cf75b00a370b0eae42deb5df8033ba92c56 (diff)
account for times when copysign might be defined as a macro
-rw-r--r--src/math/copysign.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/math/copysign.c b/src/math/copysign.c
index 2ace3c1d..c807cfc3 100644
--- a/src/math/copysign.c
+++ b/src/math/copysign.c
@@ -2,6 +2,8 @@
#include "_tgmath.h"
#include <math.h>
+#undef copysign
+
TYPE TGFN(copysign)(TYPE x, TYPE y)
{
if (isnan(x)) {