1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-15 09:25:37 +02:00

Define M_PI on MSVC

This commit is contained in:
Perttu Ahola
2012-06-23 16:06:03 +03:00
parent 4b97023251
commit 71c6845a94
5 changed files with 11 additions and 0 deletions

7
src/util/mathconstants.h Normal file
View File

@@ -0,0 +1,7 @@
#include <math.h>
// MSVC doesn't seem to define this
#ifndef M_PI
#define M_PI 3.1415926535
#endif