summaryrefslogtreecommitdiff
path: root/src/math
diff options
context:
space:
mode:
Diffstat (limited to 'src/math')
-rw-r--r--src/math/_tgmath.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/math/_tgmath.h b/src/math/_tgmath.h
index a84614a9..8cd7871b 100644
--- a/src/math/_tgmath.h
+++ b/src/math/_tgmath.h
@@ -64,4 +64,8 @@
#include "signbit.c"
#endif
+#ifndef copysign
+#define copysign(_x, _y) (_x < 0 ? -_y : _y)
+#endif
+
#endif