summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2025-04-10 00:28:30 +1000
committerGitHub <noreply@github.com>2025-04-09 15:28:30 +0100
commita0f40d9410d1ecac4b498b999ebd04e65ef762f4 (patch)
treea9d06c7ccc67a22b6d17396b3d1503ec97c5e413
parent575abc48a3064a464caaa6febf0c65215c3eb1d0 (diff)
Include `math.h` where necessary. (#25122)
-rw-r--r--keyboards/rubi/lib/calc.c1
-rw-r--r--keyboards/terrazzo/terrazzo.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/keyboards/rubi/lib/calc.c b/keyboards/rubi/lib/calc.c
index 7796a9be45..b289fdb54b 100644
--- a/keyboards/rubi/lib/calc.c
+++ b/keyboards/rubi/lib/calc.c
@@ -13,6 +13,7 @@ This is the modified version of [calculator by MWWorks](https://github.com/MWWor
Feel free to fix it! I think it needs to detect the precision of the two operands and then figure out what the precision of the result should be
*/
+#include <math.h>
#include "rubi.h"
static uint8_t calc_current_operand = 0;
diff --git a/keyboards/terrazzo/terrazzo.c b/keyboards/terrazzo/terrazzo.c
index 2a3d2a8cc6..a629e5dceb 100644
--- a/keyboards/terrazzo/terrazzo.c
+++ b/keyboards/terrazzo/terrazzo.c
@@ -14,6 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <math.h>
#include "terrazzo.h"
#ifdef LED_MATRIX_ENABLE