From 5d447d9bb0a242da61350400aceaba123778786d Mon Sep 17 00:00:00 2001 From: matlabbe Date: Sun, 11 Oct 2026 10:49:07 -0700 Subject: [PATCH] fixing M_PI not defined in tests --- corelib/test/test_imumotionpredictor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/corelib/test/test_imumotionpredictor.cpp b/corelib/test/test_imumotionpredictor.cpp index b60b42a6..48c61cc0 100644 --- a/corelib/test/test_imumotionpredictor.cpp +++ b/corelib/test/test_imumotionpredictor.cpp @@ -1,3 +1,7 @@ +// M_PI on MSVC (must come before any header including ) +#ifndef _USE_MATH_DEFINES +#define _USE_MATH_DEFINES +#endif #include #include