Skip to content

Commit

Permalink
Added extern "C" guards
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnus Feuer authored and jack-sanchez committed Aug 14, 2019
1 parent f5862c5 commit 5c29023
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dstc.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
#include <reliable_multicast.h>
#include <pthread.h>

#ifdef __cplusplus
extern "C" {
#endif

// Maximum number of concurrent client or servers nodes
// we can talk to at any given time.
Expand Down Expand Up @@ -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__

0 comments on commit 5c29023

Please sign in to comment.