From 6ea29812ac401d41787a7c1e376f38fa22994bbd Mon Sep 17 00:00:00 2001 From: "Alexander \"Ace\" Olofsson" Date: Sat, 14 Jun 2014 13:54:01 +0200 Subject: [PATCH] Another way of getting M_PI --- apps/openmw/mwworld/worldimp.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/openmw/mwworld/worldimp.cpp b/apps/openmw/mwworld/worldimp.cpp index 4a29ae1d1..f8c537cce 100644 --- a/apps/openmw/mwworld/worldimp.cpp +++ b/apps/openmw/mwworld/worldimp.cpp @@ -1,4 +1,10 @@ #include "worldimp.hpp" + +#ifdef _WIN32 // For M_PI +#define _USE_MATH_DEFINES +#include +#endif + #ifdef _WIN32 #include #elif defined HAVE_UNORDERED_MAP @@ -52,10 +58,6 @@ #include "esmloader.hpp" #include "omwloader.hpp" -#ifdef _WIN32 -#define M_PI 3.14159 // Windows doesn't have this -#endif - using namespace Ogre; namespace