fixing M_PI not defined in tests

This commit is contained in:
matlabbe
2026-10-11 10:49:07 -07:00
parent 3357599379
commit 5d447d9bb0
+4
View File
@@ -1,3 +1,7 @@
// M_PI on MSVC (must come before any header including <cmath>)
#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES
#endif
#include <gtest/gtest.h>
#include <cmath>