mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 20:23:32 +08:00
[component][sal] Add some #ifdef on source code.
This commit is contained in:
parent
f763f8e728
commit
8cae067452
@ -20,6 +20,8 @@
|
|||||||
#include <dfs_poll.h>
|
#include <dfs_poll.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef SAL_USING_AT
|
||||||
|
|
||||||
#ifdef SAL_USING_POSIX
|
#ifdef SAL_USING_POSIX
|
||||||
static int at_poll(struct dfs_fd *file, struct rt_pollreq *req)
|
static int at_poll(struct dfs_fd *file, struct rt_pollreq *req)
|
||||||
{
|
{
|
||||||
@ -111,3 +113,5 @@ int at_inet_init(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
INIT_COMPONENT_EXPORT(at_inet_init);
|
INIT_COMPONENT_EXPORT(at_inet_init);
|
||||||
|
|
||||||
|
#endif /* SAL_USING_AT */
|
||||||
|
@ -30,6 +30,8 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef SAL_USING_LWIP
|
||||||
|
|
||||||
#ifdef SAL_USING_POSIX
|
#ifdef SAL_USING_POSIX
|
||||||
/*
|
/*
|
||||||
* Re-define lwip socket
|
* Re-define lwip socket
|
||||||
@ -293,3 +295,5 @@ int lwip_inet_init(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
INIT_COMPONENT_EXPORT(lwip_inet_init);
|
INIT_COMPONENT_EXPORT(lwip_inet_init);
|
||||||
|
|
||||||
|
#endif /* SAL_USING_LWIP */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user