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.
celladd
Alexander "Ace" Olofsson 10 years ago
parent 003d0610f4
commit 1a19253158

@ -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"

Loading…
Cancel
Save