QTfrontend/drawmapscene.cpp
changeset 13931 6c8d4e140f27
parent 13236 ef1393c6bd12
--- a/QTfrontend/drawmapscene.cpp	Sun Oct 14 21:25:59 2018 +0300
+++ b/QTfrontend/drawmapscene.cpp	Sun Oct 14 21:57:30 2018 +0300
@@ -29,6 +29,10 @@
 #define DRAWN_MAP_COLOR_CURSOR_PEN (Qt::green)
 #define DRAWN_MAP_COLOR_CURSOR_ERASER (Qt::red)
 
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
+
 template <class T> T sqr(const T & x)
 {
     return x*x;