From 4dd6b1ba067e535d03252ebaea21c6d0186fdd61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Wed, 20 Sep 2017 08:35:23 +0200 Subject: [PATCH] This is only necessary if read by a C++ compiler. --- include/neocomm.h | 4 ++++ 1 file changed, 4 insertions(+) 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