diff options
author | Maxim Biro <nurupo.contributions@gmail.com> | 2013-07-22 18:06:24 -0400 |
---|---|---|
committer | Maxim Biro <nurupo.contributions@gmail.com> | 2013-07-22 18:06:24 -0400 |
commit | 52f3b1553fec56a7d558a013cef5e6afd0ed5aaf (patch) | |
tree | ff7a31673c7628e08528d81fa554fb694d7389ff /core/Lossless_UDP.h | |
parent | d0b4fa56a3f8334cfffce45a9eadfcd8143f7944 (diff) |
Added support of linkage with C++ code
Diffstat (limited to 'core/Lossless_UDP.h')
-rw-r--r-- | core/Lossless_UDP.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 @@ | |||
27 | 27 | ||
28 | #include "network.h" | 28 | #include "network.h" |
29 | 29 | ||
30 | #ifdef __cplusplus | ||
31 | extern "C" { | ||
32 | #endif | ||
30 | 33 | ||
31 | /* maximum length of the data in the data packets */ | 34 | /* maximum length of the data in the data packets */ |
32 | #define MAX_DATA_SIZE 1024 | 35 | #define MAX_DATA_SIZE 1024 |
@@ -106,4 +109,8 @@ void doLossless_UDP(); | |||
106 | return 1 if it didn't handle the packet or if the packet was shit. */ | 109 | return 1 if it didn't handle the packet or if the packet was shit. */ |
107 | int LosslessUDP_handlepacket(uint8_t * packet, uint32_t length, IP_Port source); | 110 | int LosslessUDP_handlepacket(uint8_t * packet, uint32_t length, IP_Port source); |
108 | 111 | ||
112 | #ifdef __cplusplus | ||
113 | } | ||
114 | #endif | ||
115 | |||
109 | #endif | 116 | #endif |