summaryrefslogtreecommitdiff
path: root/src/math/atan2.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-13 13:48:50 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-13 13:48:50 -0400
commit489bef2ace3c3c617f5bf78ded45a5b81fe2fd46 (patch)
treef7df0cd2678ebe868356e9a00952555a28a75214 /src/math/atan2.c
parent3e282018ffb5806cafafeb5d0d6f8d67c9bb86e8 (diff)
add src/ to -I and exorcise ../ from #include
Diffstat (limited to 'src/math/atan2.c')
-rw-r--r--src/math/atan2.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/math/atan2.c b/src/math/atan2.c
index f54c4cf7..38ba944e 100644
--- a/src/math/atan2.c
+++ b/src/math/atan2.c
@@ -2,11 +2,15 @@
#include <math.h>
#include "_tgmath.h"
#include "errno.h"
-#include "../_assert.h"
+#include "_assert.h"
#include "M_PI.c"
#include "M_PI_2.c"
+#ifndef copysign
+#define copysign(_x, _y) _x
+#endif
+
/** arc tangent **/
TYPE TGFN(atan2)(TYPE y, TYPE x)
{