From b78d3dc10db8cbc3802aab71a5079ad0cc110bab Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Wed, 11 Jun 2025 14:05:36 +0200 Subject: [PATCH] chore: prevent multiple includes for `maths.h` --- maths.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maths.h b/maths.h index b864db8..01d98da 100644 --- a/maths.h +++ b/maths.h @@ -1,3 +1,6 @@ +#ifndef MATHS_H +#define MATHS_H + #include "turret.h" double degToRad(double deg); @@ -6,3 +9,5 @@ void angleToStep(Turret::StepRatio stepRatio, vec2 angle, vec2 &step); void cartesianToPolar(Turret::StepRatio stepRatio, Turret::Offset offset, vec2 zero, vec3 position, vec2 &step); + +#endif