From 7e519b76cd5522cd3e0c30a6875d387943233d8e Mon Sep 17 00:00:00 2001 From: funbiscuit Date: Thu, 3 Nov 2022 19:10:01 +0300 Subject: [PATCH] Add guard for impl in created header (fix #14) --- lib/build-shl.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/build-shl.py b/lib/build-shl.py index ffaf057..8cb8095 100755 --- a/lib/build-shl.py +++ b/lib/build-shl.py @@ -12,6 +12,8 @@ {api} #ifdef EMBEDDED_CLI_IMPL +#ifndef EMBEDDED_CLI_IMPL_GUARD +#define EMBEDDED_CLI_IMPL_GUARD #ifdef __cplusplus extern "C" {{ #endif @@ -19,6 +21,7 @@ #ifdef __cplusplus }} #endif +#endif // EMBEDDED_CLI_IMPL_GUARD #endif // EMBEDDED_CLI_IMPL """