Fix MSVC build due to missing M_PI define

Apparently the header guard on cmath only adds the defines if _USE_MATH_DEFINES is defined when cmath is included for the first time.

So enabling that define and moving cmath up to be the first include, so that nothing else includes it without the define set.
This commit is contained in:
Alexander "Ace" Olofsson 2015-02-10 15:32:54 +01:00
parent 003d0610f4
commit 1a19253158

View file

@ -1,7 +1,8 @@
#include "weather.hpp"
#define _USE_MATH_DEFINES
#include <cmath>
#include "weather.hpp"
#include <components/esm/weatherstate.hpp>
#include "../mwbase/environment.hpp"