diff --git a/src/net/inc/net.h b/src/net/inc/net.h index f7f1258..bbbd4ce 100644 --- a/src/net/inc/net.h +++ b/src/net/inc/net.h @@ -5,6 +5,11 @@ #include #include +#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 */