From f57d52c67067e29dc3b762126a5a5e8c31d2424e Mon Sep 17 00:00:00 2001 From: Mrna Date: Wed, 24 Sep 2025 09:36:34 +0200 Subject: [PATCH] M_PI fix for windows --- cpp/src/math.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cpp/src/math.hpp b/cpp/src/math.hpp index 2756185..058d50a 100644 --- a/cpp/src/math.hpp +++ b/cpp/src/math.hpp @@ -5,6 +5,11 @@ #include #include +#ifdef _WIN32 +#include +#define M_PI std::numbers::pi +#endif + template struct Vec2D { public: Vec2D() = default;