From a86b98091b0ef23d85eab74415e25bb81a256e01 Mon Sep 17 00:00:00 2001 From: rimio Date: Mon, 11 Feb 2019 16:57:35 +0200 Subject: extern C guard for linkage in C++ projects --- include/ecbor.h.in | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') 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 #include @@ -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 -- cgit v1.2.3