mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 12:39:55 +00:00
Another way of getting M_PI
This commit is contained in:
parent
dc2fefffc7
commit
6ea29812ac
@ -1,4 +1,10 @@
|
|||||||
#include "worldimp.hpp"
|
#include "worldimp.hpp"
|
||||||
|
|
||||||
|
#ifdef _WIN32 // For M_PI
|
||||||
|
#define _USE_MATH_DEFINES
|
||||||
|
#include <cmath>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <boost/tr1/tr1/unordered_map>
|
#include <boost/tr1/tr1/unordered_map>
|
||||||
#elif defined HAVE_UNORDERED_MAP
|
#elif defined HAVE_UNORDERED_MAP
|
||||||
@ -52,10 +58,6 @@
|
|||||||
#include "esmloader.hpp"
|
#include "esmloader.hpp"
|
||||||
#include "omwloader.hpp"
|
#include "omwloader.hpp"
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
#define M_PI 3.14159 // Windows doesn't have this
|
|
||||||
#endif
|
|
||||||
|
|
||||||
using namespace Ogre;
|
using namespace Ogre;
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
|
Loading…
x
Reference in New Issue
Block a user