summaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h
index 652278e..74871dc 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -22,6 +22,10 @@
#include <math.h>
+#ifndef M_PI
+#define M_PI 3.141592654
+#endif
+
/*!
@brief Compute a bounding rectangle for two given points.
@param p1 a point.