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.
This commit is contained in:
Teodor Spæren 2022-05-28 14:37:03 +02:00 committed by GitHub
parent b6d0b7d876
commit 401906673d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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