mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Define M_PI on MSVC
This commit is contained in:
parent
4b97023251
commit
71c6845a94
5 changed files with 11 additions and 0 deletions
7
src/util/mathconstants.h
Normal file
7
src/util/mathconstants.h
Normal file
|
@ -0,0 +1,7 @@
|
|||
#include <math.h>
|
||||
|
||||
// MSVC doesn't seem to define this
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.1415926535
|
||||
#endif
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue