diff options
author | red-001 <red-001@outlook.ie> | 2017-01-20 22:19:41 +0000 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-01-20 23:19:41 +0100 |
commit | 0dada51a550c5eb52faf700dcbde4cee22a6bc70 (patch) | |
tree | ffc0993e7dd2cf240caa382a922291729aee1512 /src/util | |
parent | efa54f9c460239c23a2014076764d6c6830589e6 (diff) | |
download | minetest-0dada51a550c5eb52faf700dcbde4cee22a6bc70.tar.gz minetest-0dada51a550c5eb52faf700dcbde4cee22a6bc70.tar.bz2 minetest-0dada51a550c5eb52faf700dcbde4cee22a6bc70.zip |
Remove `mathconstants.h` and use the correct way to get `M_PI` in MSVC. (#5072)
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/mathconstants.h | 7 | ||||
-rw-r--r-- | src/util/numeric.cpp | 1 |
2 files changed, 0 insertions, 8 deletions
diff --git a/src/util/mathconstants.h b/src/util/mathconstants.h deleted file mode 100644 index 1b478aa95..000000000 --- a/src/util/mathconstants.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <math.h> - -// MSVC doesn't seem to define this -#ifndef M_PI - #define M_PI 3.1415926535 -#endif - diff --git a/src/util/numeric.cpp b/src/util/numeric.cpp index a9e7ae584..87f1040ea 100644 --- a/src/util/numeric.cpp +++ b/src/util/numeric.cpp @@ -18,7 +18,6 @@ with this program; if not, write to the Free Software Foundation, Inc., */ #include "numeric.h" -#include "mathconstants.h" #include "log.h" #include "../constants.h" // BS, MAP_BLOCKSIZE |