summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ecbor.h.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/ecbor.h.in b/include/ecbor.h.in
index ef33ce2..2f71dc9 100644
--- a/include/ecbor.h.in
+++ b/include/ecbor.h.in
@@ -8,6 +8,10 @@
#ifndef _ECBOR_H_
#define _ECBOR_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdint.h>
#include <stddef.h>
@@ -464,4 +468,8 @@ ecbor_get_bool (ecbor_item_t *item, uint8_t *value);
#define ECBOR_IS_UNDEFINED(i) \
((i)->type == ECBOR_TYPE_UNDEFINED)
+#ifdef __cplusplus
+}
+#endif
+
#endif \ No newline at end of file