diff --git a/src/lib/mathlib/math/Expo.hpp b/src/lib/mathlib/math/Expo.hpp index ff9f3d9a8240..46ccb83a1978 100644 --- a/src/lib/mathlib/math/Expo.hpp +++ b/src/lib/mathlib/math/Expo.hpp @@ -42,13 +42,13 @@ #pragma once #include -#include namespace math { // Type-safe signum function -template int sign(T val) +template +int sign(T val) { return (T(0) < val) - (val < T(0)); } diff --git a/src/lib/mathlib/math/Limits.hpp b/src/lib/mathlib/math/Limits.hpp index 6215b8f955b0..94652943cda5 100644 --- a/src/lib/mathlib/math/Limits.hpp +++ b/src/lib/mathlib/math/Limits.hpp @@ -40,7 +40,6 @@ #pragma once #include -#include //this should be defined in stdint.h, but seems to be missing in the ARM toolchain (5.2.0) #ifndef UINT64_C