From 71c6845a9446fc22a84469f28e0e6890794802e3 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 23 Jun 2012 16:06:03 +0300 Subject: Define M_PI on MSVC --- src/util/mathconstants.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/util/mathconstants.h (limited to 'src/util/mathconstants.h') diff --git a/src/util/mathconstants.h b/src/util/mathconstants.h new file mode 100644 index 000000000..1b478aa95 --- /dev/null +++ b/src/util/mathconstants.h @@ -0,0 +1,7 @@ +#include + +// MSVC doesn't seem to define this +#ifndef M_PI + #define M_PI 3.1415926535 +#endif + -- cgit v1.2.3