From 5c29023c2bcb8bb45e4c4e828b3d433a04a28317 Mon Sep 17 00:00:00 2001 From: Magnus Feuer Date: Tue, 13 Aug 2019 11:31:17 -0700 Subject: [PATCH] Added extern "C" guards --- dstc.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dstc.h b/dstc.h index 8a8b5d6..5e7a2ef 100644 --- a/dstc.h +++ b/dstc.h @@ -13,6 +13,9 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif // Maximum number of concurrent client or servers nodes // we can talk to at any given time. @@ -472,5 +475,8 @@ static inline int dstc_dyndata_length(dstc_dynamic_data_t* dyndata) extern void name(DECLARE_ARGUMENTS(__VA_ARGS__)); \ static DSTC_SERVER_INTERNAL(name, __VA_ARGS__) \ +#ifdef __cplusplus +} +#endif #endif // __DSTC_H__