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 */