diff options
Diffstat (limited to 'lib/typesafe.h')
| -rw-r--r-- | lib/typesafe.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/typesafe.h b/lib/typesafe.h index 6df3a07efe..6829b0a388 100644 --- a/lib/typesafe.h +++ b/lib/typesafe.h @@ -23,6 +23,10 @@ #include <assert.h> #include "compiler.h" +#ifdef __cplusplus +extern "C" { +#endif + /* generic macros for all list-like types */ #define for_each(prefix, head, item) \ @@ -850,6 +854,10 @@ extern void typesafe_skiplist_del(struct sskip_head *head, const struct sskip_item *b)); extern struct sskip_item *typesafe_skiplist_pop(struct sskip_head *head); +#ifdef __cplusplus +} +#endif + /* this needs to stay at the end because both files include each other. * the resolved order is typesafe.h before typerb.h */ |
