aboutsummaryrefslogtreecommitdiff
path: root/tinyalloc.h
diff options
context:
space:
mode:
authorRyzee119 <wendland@live.com.au>2020-09-17 21:02:31 +0930
committerGitHub <noreply@github.com>2020-09-17 21:02:31 +0930
commit0f1d708a84144cadb2d9462beedc66de1bb48c42 (patch)
treec091e2698da41f208abfa92466d95ef755a481cf /tinyalloc.h
parent8241b04999909769bdbd0046c3a2200cfed72367 (diff)
Allow inclusion in CPP projects
Attempted to use in Arduino, but got linker errors. This resolved the issue.
Diffstat (limited to 'tinyalloc.h')
-rw-r--r--tinyalloc.h8
1 files changed, 8 insertions, 0 deletions
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 <stdbool.h>
#include <stddef.h>
@@ -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