diff options
| author | Ryzee119 <wendland@live.com.au> | 2020-09-17 21:02:31 +0930 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-17 21:02:31 +0930 |
| commit | 0f1d708a84144cadb2d9462beedc66de1bb48c42 (patch) | |
| tree | c091e2698da41f208abfa92466d95ef755a481cf /tinyalloc.h | |
| parent | 8241b04999909769bdbd0046c3a2200cfed72367 (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.h | 8 |
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 |
