summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/palette.cpp5
-rw-r--r--src/particle/particleemitterprop.h5
-rw-r--r--src/sdl2gfx/SDL2_rotozoom.h1
3 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/palette.cpp b/src/gui/palette.cpp
index c98a9416e..f0f97b6f1 100644
--- a/src/gui/palette.cpp
+++ b/src/gui/palette.cpp
@@ -33,6 +33,11 @@
#include "debug.h"
+// required by MSYS2 / Windows
+#ifndef M_PI
+#define M_PI 3.1415926535897932384626433832795
+#endif
+
const Color Palette::BLACK = Color(0, 0, 0, 255);
Palette::Palettes Palette::mInstances;
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/sdl2gfx/SDL2_rotozoom.h b/src/sdl2gfx/SDL2_rotozoom.h
index ffab24fbc..abf1305f5 100644
--- a/src/sdl2gfx/SDL2_rotozoom.h
+++ b/src/sdl2gfx/SDL2_rotozoom.h
@@ -40,6 +40,7 @@ extern "C"
{
#endif
+// required by MSYS2 / Windows
#ifndef M_PI
#define M_PI 3.1415926535897932384626433832795
#endif