From 401906673d1e0a7406a5e99352d52fb08bfb07df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Teodor=20Sp=C3=A6ren?= Date: Sat, 28 May 2022 14:37:03 +0200 Subject: [PATCH] Add M_PI to maths, to allow compilation on C++ C++ does not specify `M_PI`, so this change is required to allow for compilation. --- include/c3d/maths.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/c3d/maths.h b/include/c3d/maths.h index f1b4f86..faf463a 100644 --- a/include/c3d/maths.h +++ b/include/c3d/maths.h @@ -9,6 +9,10 @@ * @{ */ +#ifndef M_PI +# define M_PI 3.14159265358979323846264338327950288 +#endif + /** * The one true circumference-to-radius ratio. * See http://tauday.com/tau-manifesto