Skip to content

Commit

Permalink
- add cmath includes to fix the mac compile std::floor errors
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle committed Jan 20, 2022
1 parent 851d058 commit 64f4332
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/maploader/maploader.cpp
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions src/rendering/hwrenderer/scene/hw_spritelight.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 64f4332

Please sign in to comment.