From 3ed5a13e3880327d6795f274a096cbb316e29fab Mon Sep 17 00:00:00 2001 From: jp7g21 <jp7g21@soton.ac.uk> Date: Sat, 13 Nov 2021 18:58:30 +0000 Subject: [PATCH] Added header guard --- libduck/libduck.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libduck/libduck.h b/libduck/libduck.h index e08bc53..081bdeb 100644 --- a/libduck/libduck.h +++ b/libduck/libduck.h @@ -1,3 +1,6 @@ +#ifndef _LIBDUCK_H +#define _LIBDUCK_H + #define MOTOR_1 1 #define MOTOR_2 2 #define MOTOR_3 3 @@ -12,3 +15,5 @@ int duck_set_position(int motor, int angle); int duck_delay(int ms); int duck_set_velocity(int motor, int deg_per_sec); void close_duck(void); + +#endif /* _LIBDUCK_H */ -- GitLab