aboutsummaryrefslogtreecommitdiff
path: root/tinyalloc.h
diff options
context:
space:
mode:
authorKarsten Schmidt <k@postspectacular.com>2020-09-18 01:32:42 +0100
committerGitHub <noreply@github.com>2020-09-18 01:32:42 +0100
commit7273051682ee0b9235bd24b7544f9fe643a023f5 (patch)
treec091e2698da41f208abfa92466d95ef755a481cf /tinyalloc.h
parent8241b04999909769bdbd0046c3a2200cfed72367 (diff)
parent0f1d708a84144cadb2d9462beedc66de1bb48c42 (diff)
Merge pull request #9 from Ryzee119/patch-1
Allow inclusion in CPP projects
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