From 227a0e12ee262dbabdd8d988fec194273cf90029 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ram=C5=ABnas=20Ma=C5=BEeikis?= Date: Wed, 29 May 2019 14:33:16 +0300 Subject: Tweaked function declarations and build files to make it build. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ramūnas Mažeikis --- include/tlv.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/tlv.h b/include/tlv.h index 7bfb275..b52763a 100644 --- a/include/tlv.h +++ b/include/tlv.h @@ -69,6 +69,9 @@ A few things to note: #define TLV_SZ_MAX_RAW (MTU - 64) +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ /** * Message sequence number since beggining of sesssion. * @@ -187,4 +190,8 @@ int tlv_push_data(struct tlv *t, const char *data, size_t size); */ int tlv_push_tlv(struct tlv *t, const struct tlv *other); +#ifdef __cplusplus +} +#endif /* __cplusplus */ + #endif /* USURPATION_PROTOCOL_H_INCLUDED */ -- cgit v1.2.3