diff --git a/include/net/sntp.h b/include/net/sntp.h index eeaaf8194978..93126261e623 100644 --- a/include/net/sntp.h +++ b/include/net/sntp.h @@ -10,6 +10,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + /** * @brief Simple Network Time Protocol API * @defgroup sntp SNTP @@ -98,6 +102,10 @@ void sntp_close(struct sntp_ctx *ctx); int sntp_simple(const char *server, u32_t timeout, struct sntp_time *time); +#ifdef __cplusplus +} +#endif + /** * @} */