summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrimio <vasi.vilvoiu@gmail.com>2019-02-11 16:57:35 +0200
committerrimio <vasi.vilvoiu@gmail.com>2019-02-11 16:57:35 +0200
commita86b98091b0ef23d85eab74415e25bb81a256e01 (patch)
tree2f314037b20e7ba21b969f19c06bf22f73571d99
parentfacb5c733c2cbc563ed47ef0d8861972fed5c70b (diff)
extern C guard for linkage in C++ projects
-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