diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-09-23 04:39:29 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-09-23 04:39:36 +0200 |
| commit | 11a12ad316b3314aceb8a08b1332c4571111459c (patch) | |
| tree | 962dd64185a5709b33f45b7137e3b4d6e711189b | |
| parent | a735c86cc194650643edc9116ad97176aa5c5bab (diff) | |
net.h: Add missing extern "C"
| -rw-r--r-- | src/net/inc/net.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 <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 */ |
