From 2575a935161e6babee21aa0326c2771d2063e56f Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Sun, 15 May 2022 21:05:50 -0400 Subject: [PATCH] rename sal.h as sal_low_lvl.h --- components/net/netdev/src/netdev.c | 2 +- components/net/sal/impl/af_inet_at.c | 2 +- components/net/sal/impl/af_inet_lwip.c | 2 +- components/net/sal/impl/proto_mbedtls.c | 2 +- components/net/sal/include/{sal.h => sal_low_lvl.h} | 6 ++++-- components/net/sal/src/sal_socket.c | 2 +- documentation/sal/sal.md | 2 +- 7 files changed, 10 insertions(+), 8 deletions(-) rename components/net/sal/include/{sal.h => sal_low_lvl.h} (94%) diff --git a/components/net/netdev/src/netdev.c b/components/net/netdev/src/netdev.c index f121f52c19..2a87e91cb0 100644 --- a/components/net/netdev/src/netdev.c +++ b/components/net/netdev/src/netdev.c @@ -20,7 +20,7 @@ #ifdef RT_USING_SAL #include -#include +#include #endif /* RT_USING_SAL */ #define DBG_TAG "netdev" diff --git a/components/net/sal/impl/af_inet_at.c b/components/net/sal/impl/af_inet_at.c index 07dff0018c..e5cc8720f6 100644 --- a/components/net/sal/impl/af_inet_at.c +++ b/components/net/sal/impl/af_inet_at.c @@ -11,7 +11,7 @@ #include #include -#include +#include #include #include diff --git a/components/net/sal/impl/af_inet_lwip.c b/components/net/sal/impl/af_inet_lwip.c index 2cf0958ee4..e99da3117a 100644 --- a/components/net/sal/impl/af_inet_lwip.c +++ b/components/net/sal/impl/af_inet_lwip.c @@ -20,7 +20,7 @@ #include #endif -#include +#include #include #include diff --git a/components/net/sal/impl/proto_mbedtls.c b/components/net/sal/impl/proto_mbedtls.c index 338792c948..4ae9f26328 100644 --- a/components/net/sal/impl/proto_mbedtls.c +++ b/components/net/sal/impl/proto_mbedtls.c @@ -20,7 +20,7 @@ #include #endif #include -#include +#include #include diff --git a/components/net/sal/include/sal.h b/components/net/sal/include/sal_low_lvl.h similarity index 94% rename from components/net/sal/include/sal.h rename to components/net/sal/include/sal_low_lvl.h index dd250e37b6..95f984cca8 100644 --- a/components/net/sal/include/sal.h +++ b/components/net/sal/include/sal_low_lvl.h @@ -6,10 +6,12 @@ * Change Logs: * Date Author Notes * 2018-05-17 ChenYong First version + * 2022-05-15 Meco Man rename sal.h as sal_low_lvl.h to avoid conflicts + * with Microsoft Visual Studio header file */ -#ifndef SAL_H__ -#define SAL_H__ +#ifndef SAL_LOW_LEVEL_H__ +#define SAL_LOW_LEVEL_H__ #include diff --git a/components/net/sal/src/sal_socket.c b/components/net/sal/src/sal_socket.c index 8f4ac915eb..2ed8e69e79 100644 --- a/components/net/sal/src/sal_socket.c +++ b/components/net/sal/src/sal_socket.c @@ -18,7 +18,7 @@ #ifdef SAL_USING_TLS #include #endif -#include +#include #include #ifdef SAL_INTERNET_CHECK diff --git a/documentation/sal/sal.md b/documentation/sal/sal.md index 98af885541..e4a9a58e74 100644 --- a/documentation/sal/sal.md +++ b/documentation/sal/sal.md @@ -719,7 +719,7 @@ The following is the access registration process implemented by AT Socket networ ```c #include #include -#include /* SAL component structure holds the header file */ +#include /* SAL component structure holds the header file */ #include /* AT Socket related header file */ #include -- GitLab