mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #1790 from BytesGalore/extern_C_in_headers_examples
examples: add extern "C" to headers
This commit is contained in:
commit
58a10f3272
@ -9,6 +9,10 @@
|
|||||||
#ifndef RPL_UDP_H
|
#ifndef RPL_UDP_H
|
||||||
#define RPL_UDP_H
|
#define RPL_UDP_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#define APP_VERSION "1.2"
|
#define APP_VERSION "1.2"
|
||||||
|
|
||||||
#define RADIO_CHANNEL (10)
|
#define RADIO_CHANNEL (10)
|
||||||
@ -96,4 +100,9 @@ extern radio_address_t id;
|
|||||||
|
|
||||||
/** @brief Char array for IP address printing */
|
/** @brief Char array for IP address printing */
|
||||||
extern char addr_str[IPV6_MAX_ADDR_STR_LEN];
|
extern char addr_str[IPV6_MAX_ADDR_STR_LEN];
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* RPL_UDP_H */
|
#endif /* RPL_UDP_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user