- add cmath includes to fix the mac compile std::floor errors

This commit is contained in:
Rachael Alexanderson 2022-01-20 13:30:23 -05:00
parent 851d058a4b
commit 64f4332b43
2 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,7 @@
#include <math.h>
#include <cmath> // needed for std::floor on mac
#include "maploader.h"
#include "c_cvars.h"
#include "actor.h"

View File

@ -37,6 +37,7 @@
#include "hwrenderer/scene/hw_drawinfo.h"
#include "hwrenderer/scene/hw_drawstructs.h"
#include "models.h"
#include <cmath> // needed for std::floor on mac
template<class T>
T smoothstep(const T edge0, const T edge1, const T x)