c++: Add extern "C" { } block to header files
Adds extern "C" { } blocks to header files so that they can be safely used by C++ source files. Change-Id: Ia4db0c36a5dac5d3de351184a297d2af0df64532 Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
This commit is contained in:
parent
6504b7e72a
commit
a0e4568760
128 changed files with 1035 additions and 3 deletions
|
@ -23,6 +23,10 @@
|
|||
#ifndef __NET_CORE_H
|
||||
#define __NET_CORE_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Network subsystem logging helpers */
|
||||
|
||||
#define NET_DBG(fmt, ...) printk("net: %s: " fmt, __func__, ##__VA_ARGS__)
|
||||
|
@ -125,4 +129,8 @@ int net_recv(struct net_buf *buf);
|
|||
|
||||
void net_context_init(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __NET_CORE_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue