summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-10-10 09:58:54 +0200
committerMattes D <github@xoft.cz>2014-10-10 09:58:54 +0200
commita47d9e53344144d7584c37bbac742cf2187492fe (patch)
treef1f7a8623c9232437686ed197e946e63e6720bc7 /src
parentMerge pull request #1376 from mc-server/static_cast (diff)
downloadcuberite-a47d9e53344144d7584c37bbac742cf2187492fe.tar
cuberite-a47d9e53344144d7584c37bbac742cf2187492fe.tar.gz
cuberite-a47d9e53344144d7584c37bbac742cf2187492fe.tar.bz2
cuberite-a47d9e53344144d7584c37bbac742cf2187492fe.tar.lz
cuberite-a47d9e53344144d7584c37bbac742cf2187492fe.tar.xz
cuberite-a47d9e53344144d7584c37bbac742cf2187492fe.tar.zst
cuberite-a47d9e53344144d7584c37bbac742cf2187492fe.zip
Diffstat (limited to 'src')
-rw-r--r--src/Globals.h3
-rw-r--r--src/Vector3.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/Globals.h b/src/Globals.h
index 9959d92a9..4ee1352eb 100644
--- a/src/Globals.h
+++ b/src/Globals.h
@@ -51,6 +51,9 @@
#define NORETURN __declspec(noreturn)
+ // Use non-standard defines in <cmath>
+ #define _USE_MATH_DEFINES
+
#elif defined(__GNUC__)
// TODO: Can GCC explicitly mark classes as abstract (no instances can be created)?
diff --git a/src/Vector3.h b/src/Vector3.h
index 937c8fdfa..1854e42e3 100644
--- a/src/Vector3.h
+++ b/src/Vector3.h
@@ -3,7 +3,6 @@
-#define _USE_MATH_DEFINES // Enable non-standard math defines (MSVC)
#include <list>
#include <vector>