summaryrefslogtreecommitdiffhomepage
path: root/KeyboardController.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-26 11:38:51 +0200
committerAki <please@ignore.pl>2022-04-26 11:41:12 +0200
commit77d3eda4f061c39ed9e922f9f46177c8728dc0f7 (patch)
treea2d3f3a0c14d61e81236368933bf5027d0be1e22 /KeyboardController.cpp
parent1811ec874d235d44a143c39307ac984b87fe3a8a (diff)
downloadbullethell2022-master.zip
bullethell2022-master.tar.gz
bullethell2022-master.tar.bz2
Fixed compilation under CMake generated makefiles with EmscriptenHEADmaster
There is an issue with cmath vs math.h guards that caused some problems. Additionally, I had to tweak guards in alltypes.h and __stddef_max_align_t.h in emscripten sysroot/clang.
Diffstat (limited to 'KeyboardController.cpp')
-rw-r--r--KeyboardController.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/KeyboardController.cpp b/KeyboardController.cpp
index cae86f7..15ed1ff 100644
--- a/KeyboardController.cpp
+++ b/KeyboardController.cpp
@@ -1,11 +1,11 @@
#include "KeyboardController.h"
-#include <cmath>
+#include <math.h>
#include <raylib.h>
-static const float DIAGONAL {std::sin(static_cast<float>(M_PI) / 4.0f)};
+static const float DIAGONAL {static_cast<float>(sin(static_cast<float>(M_PI) / 4.0f))};
static int check_axis(int negative_key, int positive_key, int last);