From b9bae213d08a8476c3c1b704021291e821fb2823 Mon Sep 17 00:00:00 2001 From: BytesGalore Date: Fri, 10 Oct 2014 11:22:48 +0200 Subject: [PATCH] examples: add extern "C" to header `rpl_udp.h` --- examples/rpl_udp/rpl_udp.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/examples/rpl_udp/rpl_udp.h b/examples/rpl_udp/rpl_udp.h index 0834770192..60ab602e82 100644 --- a/examples/rpl_udp/rpl_udp.h +++ b/examples/rpl_udp/rpl_udp.h @@ -9,6 +9,10 @@ #ifndef RPL_UDP_H #define RPL_UDP_H +#ifdef __cplusplus +extern "C" { +#endif + #define APP_VERSION "1.2" #define RADIO_CHANNEL (10) @@ -96,4 +100,9 @@ extern radio_address_t id; /** @brief Char array for IP address printing */ extern char addr_str[IPV6_MAX_ADDR_STR_LEN]; + +#ifdef __cplusplus +} +#endif + #endif /* RPL_UDP_H */