Skip to content

Commit 0f1d708

Browse files
authored
Allow inclusion in CPP projects
Attempted to use in Arduino, but got linker errors. This resolved the issue.
1 parent 8241b04 commit 0f1d708

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)