From 203596e4c5084731d9bdc25a66e64b3007328fe4 Mon Sep 17 00:00:00 2001 From: KaruroChori Date: Mon, 6 Jan 2025 11:32:55 +0000 Subject: [PATCH] Update canfigger.h for C++ compatibility Added guarded export to ensure compatibility with C++ --- canfigger.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/canfigger.h b/canfigger.h index 0bfa7f6..5bac10e 100644 --- a/canfigger.h +++ b/canfigger.h @@ -37,6 +37,10 @@ SOFTWARE. #pragma once +#ifdef __cplusplus +extern "C" { +#endif + /** * \example example.c */ @@ -96,3 +100,7 @@ void canfigger_free_current_key_node_advance(struct Canfigger **list); * @param attr Current attribute that will get reassigned after the function call. */ void canfigger_free_current_attr_str_advance(struct attributes *attributes, char **attr); + +#ifdef __cplusplus +} +#endif