From 81f7de05fb1ed4e9b857fdffbf0fbd4142333d80 Mon Sep 17 00:00:00 2001 From: Mrna Date: Tue, 7 Oct 2025 12:40:42 +0200 Subject: [PATCH] Windows fix for M_PI --- cpp/src/math.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cpp/src/math.hpp b/cpp/src/math.hpp index ad3dcd0..fbd0682 100644 --- a/cpp/src/math.hpp +++ b/cpp/src/math.hpp @@ -11,6 +11,12 @@ #include #include +#ifdef _WIN32 +#include +#define M_PI std::numbers::pi +// TODO use std::numbers::pi instead of M_PI +#endif + template requires std::floating_point static inline bool equalEpsilon(const T &a, const T &b) {