diff --git a/components/coap/port/include/coap/coap_dtls.h b/components/coap/port/include/coap/coap_dtls.h index 2dd0e88d2e..32bb54399f 100644 --- a/components/coap/port/include/coap/coap_dtls.h +++ b/components/coap/port/include/coap/coap_dtls.h @@ -11,6 +11,11 @@ #ifndef COAP_DTLS_H_ #define COAP_DTLS_H_ +#ifdef __cplusplus +extern "C" { +#endif + +#include "libcoap.h" #include "coap_time.h" #include "str.h" @@ -627,5 +632,8 @@ void coap_dtls_set_log_level(int level); */ int coap_dtls_get_log_level(void); +#ifdef __cplusplus +} +#endif #endif /* COAP_DTLS_H */