From 760dd4bc9bb88bf30ed855fb33e08e2e7a2eff06 Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Sat, 19 Aug 2023 10:41:16 +0000 Subject: [PATCH] RIOT: Add in cplusplus wrappers to example header files --- examples/riot/examples_libcoap_client/client-coap.h | 13 +++++++++++++ examples/riot/examples_libcoap_server/server-coap.h | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/examples/riot/examples_libcoap_client/client-coap.h b/examples/riot/examples_libcoap_client/client-coap.h index ee51170b..b75f6571 100644 --- a/examples/riot/examples_libcoap_client/client-coap.h +++ b/examples/riot/examples_libcoap_client/client-coap.h @@ -9,8 +9,21 @@ * of use. */ +#ifndef CLIENT_COAP_H +#define CLIENT_COAP_H + +#ifdef __cplusplus +extern "C" { +#endif + #include "coap_config.h" #include /* Start up the CoAP Client */ void client_coap_init(int argc, char **argv); + +#ifdef __cplusplus +} +#endif + +#endif /* CLIENT_COAP_H */ diff --git a/examples/riot/examples_libcoap_server/server-coap.h b/examples/riot/examples_libcoap_server/server-coap.h index 44cf26ff..9eaf3642 100644 --- a/examples/riot/examples_libcoap_server/server-coap.h +++ b/examples/riot/examples_libcoap_server/server-coap.h @@ -9,8 +9,21 @@ * of use. */ +#ifndef SERVER_COAP_H +#define SERVER_COAP_H + +#ifdef __cplusplus +extern "C" { +#endif + #include "coap_config.h" #include /* Start up the CoAP Server */ void server_coap_init(int argc, char **argv); + +#ifdef __cplusplus +} +#endif + +#endif /* SERVER_COAP_H */