From 52f3b1553fec56a7d558a013cef5e6afd0ed5aaf Mon Sep 17 00:00:00 2001 From: Maxim Biro Date: Mon, 22 Jul 2013 18:06:24 -0400 Subject: Added support of linkage with C++ code --- core/Lossless_UDP.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'core/Lossless_UDP.h') diff --git a/core/Lossless_UDP.h b/core/Lossless_UDP.h index 8a71bd68..0f5bb119 100644 --- a/core/Lossless_UDP.h +++ b/core/Lossless_UDP.h @@ -27,6 +27,9 @@ #include "network.h" +#ifdef __cplusplus +extern "C" { +#endif /* maximum length of the data in the data packets */ #define MAX_DATA_SIZE 1024 @@ -106,4 +109,8 @@ void doLossless_UDP(); return 1 if it didn't handle the packet or if the packet was shit. */ int LosslessUDP_handlepacket(uint8_t * packet, uint32_t length, IP_Port source); +#ifdef __cplusplus +} +#endif + #endif -- cgit v1.2.3