summaryrefslogtreecommitdiff
path: root/src/particle
diff options
context:
space:
mode:
Diffstat (limited to 'src/particle')
-rw-r--r--src/particle/imageparticle.cpp2
-rw-r--r--src/particle/particleemitterprop.h5
-rw-r--r--src/particle/textparticle.cpp2
3 files changed, 9 insertions, 0 deletions
diff --git a/src/particle/imageparticle.cpp b/src/particle/imageparticle.cpp
index 5dde7a622..cf2411e9a 100644
--- a/src/particle/imageparticle.cpp
+++ b/src/particle/imageparticle.cpp
@@ -27,6 +27,8 @@
#include "resources/image/image.h"
+#include "utils/performance.h"
+
#include "debug.h"
StringIntMap ImageParticle::imageParticleCountByName;
diff --git a/src/particle/particleemitterprop.h b/src/particle/particleemitterprop.h
index d82f188ac..0d1f9e5cb 100644
--- a/src/particle/particleemitterprop.h
+++ b/src/particle/particleemitterprop.h
@@ -30,6 +30,11 @@
#include "localconsts.h"
+// required by MSYS2 / Windows
+#ifndef M_PI
+#define M_PI 3.1415926535897932384626433832795
+#endif
+
template <typename T> struct ParticleEmitterProp final
{
ParticleEmitterProp() :
diff --git a/src/particle/textparticle.cpp b/src/particle/textparticle.cpp
index 1d699cc0f..15517e018 100644
--- a/src/particle/textparticle.cpp
+++ b/src/particle/textparticle.cpp
@@ -29,6 +29,8 @@
#include "render/graphics.h"
+#include "utils/performance.h"
+
#include "debug.h"
TextParticle::TextParticle(const std::string &restrict text,