Don't define M_PI if we are using MSVC and USE_MATH_DEFINES is

already defined
This commit is contained in:
twinaphex 2017-02-21 20:14:19 +01:00
parent c6e150ae2a
commit 21ddee6690

View File

@ -68,8 +68,10 @@
#endif
#ifndef M_PI
#if !defined(_MSC_VER) && !defined(USE_MATH_DEFINES)
#define M_PI 3.14159265358979323846264338327
#endif
#endif
#ifndef MAX
#define MAX(a, b) ((a) > (b) ? (a) : (b))