mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
m/mathinclude: Apperently _USE_MATH_DEFINES was not enough
This commit is contained in:
parent
6f10f474fa
commit
6ba27de305
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue