From 0f1d708a84144cadb2d9462beedc66de1bb48c42 Mon Sep 17 00:00:00 2001 From: Ryzee119 Date: Thu, 17 Sep 2020 21:02:31 +0930 Subject: [PATCH] Allow inclusion in CPP projects Attempted to use in Arduino, but got linker errors. This resolved the issue. --- tinyalloc.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tinyalloc.h b/tinyalloc.h index 947af94..113f147 100644 --- a/tinyalloc.h +++ b/tinyalloc.h @@ -1,3 +1,7 @@ +#ifdef __cplusplus +extern "C" { +#endif + #include #include @@ -10,3 +14,7 @@ size_t ta_num_free(); size_t ta_num_used(); size_t ta_num_fresh(); bool ta_check(); + +#ifdef __cplusplus +} +#endif