mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-02 10:57:08 +03:00
Zephyr: Support C++ builds
Some of the Zephyr include files need to be C++, not C based. The 'extern "C"' wrapper in include/coap3/coap.h means that all #include are treated as being C. Remove 'extern "C"' wrapper from include/coap3/coap.h and add wrapper to include files after #include and before any function / structure definitions. Add in a C++ build test for CI.
This commit is contained in:
1 parent
7dff177f29
commit
ea01661faf
68 files changed
+582
-29
No files matched your search
@@ -51,6 +51,10 @@
|
||||
#include "oscore_cose.h"
|
||||
#include "oscore_context.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @ingroup internal_api
|
||||
* @addtogroup oscore_internal
|
||||
@@ -124,4 +128,8 @@ void oscore_roll_back_seq(oscore_recipient_ctx_t *ctx);
|
||||
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _OSCORE_H */
|
||||
Reference in new issue
Block a user