From 6ba27de30530a31eb86036d5fd6a79c1e19cca20 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Tue, 30 Mar 2021 19:48:01 +0100 Subject: [PATCH] m/mathinclude: Apperently _USE_MATH_DEFINES was not enough --- src/xrt/auxiliary/math/m_mathinclude.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/xrt/auxiliary/math/m_mathinclude.h b/src/xrt/auxiliary/math/m_mathinclude.h index 81c3c5a0e..dd51120e4 100644 --- a/src/xrt/auxiliary/math/m_mathinclude.h +++ b/src/xrt/auxiliary/math/m_mathinclude.h @@ -21,6 +21,17 @@ #include #endif + +// Might be missing on Windows. +#ifndef M_PI +#define M_PI (3.14159265358979323846) +#endif + +// Might be missing on Windows. +#ifndef M_PIl +#define M_PIl (3.14159265358979323846264338327950288) +#endif + #ifndef M_1_PI #define M_1_PI (1. / M_PI) #endif