Skip to content

Commit 7273051

Browse files
Merge pull request #9 from Ryzee119/patch-1
Allow inclusion in CPP projects
2 parents 8241b04 + 0f1d708 commit 7273051

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tinyalloc.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#ifdef __cplusplus
2+
extern "C" {
3+
#endif
4+
15
#include <stdbool.h>
26
#include <stddef.h>
37

@@ -10,3 +14,7 @@ size_t ta_num_free();
1014
size_t ta_num_used();
1115
size_t ta_num_fresh();
1216
bool ta_check();
17+
18+
#ifdef __cplusplus
19+
}
20+
#endif

0 commit comments

Comments
 (0)