diff --git a/include/neocomm.h b/include/neocomm.h index 0c129e8..e4fe288 100644 --- a/include/neocomm.h +++ b/include/neocomm.h @@ -18,7 +18,9 @@ #pragma once +#ifdef __cplusplus extern "C" { +#endif /** * @brief Initialize a local DHT node. @@ -67,4 +69,6 @@ int NeoComm_export_nodes(const char *node_file); */ const char *NeoComm_get_last_error(); +#ifdef __cplusplus } +#endif