diff --git a/MappingGui.cpp b/MappingGui.cpp
index eeeb214..c170831 100644
--- a/MappingGui.cpp
+++ b/MappingGui.cpp
@@ -18,6 +18,10 @@
* along with this program. If not, see .
*/
+#include "MapperGLCanvas.h"
+#include "ShapeGraphicsItem.h"
+#include "ShapeControlPainter.h"
+
#include "MappingGui.h"
MappingGui::MappingGui(Mapping::ptr mapping)
diff --git a/MappingGui.h b/MappingGui.h
index a68e903..5a35aa9 100644
--- a/MappingGui.h
+++ b/MappingGui.h
@@ -37,13 +37,6 @@
#include "Paint.h"
#include "Mapping.h"
-#include "MapperGLCanvas.h"
-
-#include "ShapeGraphicsItem.h"
-#include "ShapeControlPainter.h"
-
-#include "Util.h"
-
#include "qtpropertymanager.h"
#include "qtvariantproperty.h"
#include "qttreepropertybrowser.h"
diff --git a/Maths.h b/Maths.h
index 1993b05..2852cd0 100644
--- a/Maths.h
+++ b/Maths.h
@@ -25,6 +25,10 @@
#include
#include
+#ifndef M_PI
+# define M_PI 3.14159265358979323846
+#endif
+
/// Converts from degrees to radians.
inline qreal degreesToRadians(qreal degrees) { return degrees / 180.0f * M_PI; }
diff --git a/Shape.h b/Shape.h
index 4c42528..ece450e 100644
--- a/Shape.h
+++ b/Shape.h
@@ -21,7 +21,6 @@
#define M_SHAPE_H_
#include
-#include
#include