net.h: Add missing extern "C"
This commit is contained in:
parent
e6ae88aa87
commit
b4c08b585c
|
@ -5,6 +5,11 @@
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C"
|
||||||
|
{
|
||||||
|
#endif
|
||||||
|
|
||||||
enum net_domain
|
enum net_domain
|
||||||
{
|
{
|
||||||
NET_DOMAIN_IPV4,
|
NET_DOMAIN_IPV4,
|
||||||
|
@ -80,4 +85,8 @@ int net_write(struct net_socket *s, const void *buf, size_t n);
|
||||||
int net_close(struct net_socket *s);
|
int net_close(struct net_socket *s);
|
||||||
const char *net_domain_str(enum net_domain d);
|
const char *net_domain_str(enum net_domain d);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* NET_H */
|
#endif /* NET_H */
|
||||||
|
|
Loading…
Reference in New Issue