From e5f48a6502e4a8f0b7617bf3cf353f266f55a5c1 Mon Sep 17 00:00:00 2001 From: Eli Tayrien Date: Tue, 12 Nov 2024 15:34:15 -0800 Subject: [PATCH] Add #include guard around Modulino.h My project currently cannot include modulino.h from two source files. An include guard could resolve this issue. --- src/Modulino.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Modulino.h b/src/Modulino.h index cfe420b..c4aa73c 100644 --- a/src/Modulino.h +++ b/src/Modulino.h @@ -1,3 +1,6 @@ +#ifndef ARDUINO_LIBRARIES_MODULINO_H +#define ARDUINO_LIBRARIES_MODULINO_H + // Copyright (c) 2024 Arduino SA // SPDX-License-Identifier: MPL-2.0 @@ -506,3 +509,5 @@ class ModulinoDistance : public Module { float internal = NAN; _distance_api* api = nullptr; }; + +#endif