summaryrefslogtreecommitdiff
path: root/src/math.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/math.h')
-rw-r--r--src/math.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/math.h b/src/math.h
index 40121ea..7e65047 100644
--- a/src/math.h
+++ b/src/math.h
@@ -3,9 +3,11 @@
#include "common.h" //should define c3_t
-#define __USE_GNU
#include <math.h>
-#undef __USE_GNU
+
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
real distance2(c2_t p1,c2_t p2);
c2_t rotate_c2(c2_t p1,c2_t p2,radians dr);