net.h: Add missing extern "C"

This commit is contained in:
Xavier Del Campo Romero 2022-09-23 04:39:29 +02:00
parent e6ae88aa87
commit b4c08b585c
1 changed files with 9 additions and 0 deletions

View File

@ -5,6 +5,11 @@
#include <stddef.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C"
{
#endif
enum net_domain
{
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);
const char *net_domain_str(enum net_domain d);
#ifdef __cplusplus
}
#endif
#endif /* NET_H */