- 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 e67c421201
commit 060e2cefc6
2 changed files with 2 additions and 0 deletions

View file

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

View file

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