summaryrefslogtreecommitdiff
path: root/components/net/sal_socket/impl
diff options
context:
space:
mode:
authorchenyong <[email protected]>2018-08-25 21:04:11 +0800
committerchenyong <[email protected]>2018-08-27 09:56:41 +0800
commitfc73538153ff2e1b775b0357b0f8df6010a70493 (patch)
tree58b7ba0e39f382f29fb3d89cfc0a1bba1dce73b0 /components/net/sal_socket/impl
parent192b17751868b4aa9a95ad34bb90dcd54071e5df (diff)
[net][sal/at] Add components C++ support
Diffstat (limited to 'components/net/sal_socket/impl')
-rw-r--r--components/net/sal_socket/impl/af_inet.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/net/sal_socket/impl/af_inet.h b/components/net/sal_socket/impl/af_inet.h
index 10a77d5871..8d6be25eaa 100644
--- a/components/net/sal_socket/impl/af_inet.h
+++ b/components/net/sal_socket/impl/af_inet.h
@@ -27,6 +27,10 @@
#include <rtthread.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef SAL_USING_LWIP
/* lwIP protocol family register */
int lwip_inet_init(void);
@@ -37,4 +41,8 @@ int lwip_inet_init(void);
int at_inet_init(void);
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __AF_INET_H__ */