m/mathinclude: Apperently _USE_MATH_DEFINES was not enough

This commit is contained in:
Jakob Bornecrantz 2021-03-30 19:48:01 +01:00
parent 6f10f474fa
commit 6ba27de305

View file

@ -21,6 +21,17 @@
#include <math.h>
#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