From 7cf517ce44daf453cdf2eac4f79a28c76e6d9a79 Mon Sep 17 00:00:00 2001 From: kevin Date: Mon, 25 Mar 2013 16:01:09 -0700 Subject: [PATCH] cmUdpNet.h: Added extern "C" {} wrapper. --- cmUdpNet.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/cmUdpNet.h b/cmUdpNet.h index 755b78f..4a1041c 100644 --- a/cmUdpNet.h +++ b/cmUdpNet.h @@ -1,6 +1,10 @@ #ifndef cmUdpNet_h #define cmUdpNet_h +#ifdef __cplusplus +extern "C" { +#endif + /* A cmUdpNet is a wrapper around a single cmUdpPort. This object maintains an array of remote nodes which map application defined @@ -93,7 +97,7 @@ unsigned cmUdpNetNodeLabelToId( cmUdpNetH_t h, const cmChar_t* label ); // Return the node label associated with a node id or NULL if the id // is not found. -const cmChar_t* cmUdpNetNodeIdToLabel( cmUdpNetH_t h, unsigned id ); +const cmChar_t* cmUdpNetNodeIdToLabel( cmUdpNetH_t h, unsigned id ); // Get the total count of nodes on the network. This count includes the local node. unsigned cmUdpNetNodeCount( cmUdpNetH_t h ); @@ -128,4 +132,8 @@ void cmUdpNetReport( cmUdpNetH_t h, cmRpt_t* rpt ); cmRC_t cmUdpNetTest( cmCtx_t* ctx, int argc, char* argv[] ); +#ifdef __cplusplus +} +#endif + #endif