mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 11:30:01 +08:00
remove libc_errno.h & libc_limits.h
This commit is contained in:
@@ -105,7 +105,7 @@ void sys_arch_assert(const char* file, int line);
|
||||
#define LWIP_PLATFORM_DIAG(x) do {rt_kprintf x;} while(0)
|
||||
#define LWIP_PLATFORM_ASSERT(x) do {rt_kprintf(x); sys_arch_assert(__FILE__, __LINE__);}while(0)
|
||||
|
||||
#include "string.h"
|
||||
#include <string.h>
|
||||
|
||||
#define SYS_ARCH_DECL_PROTECT(level)
|
||||
#define SYS_ARCH_PROTECT(level) rt_enter_critical()
|
||||
|
||||
@@ -84,7 +84,7 @@ void sys_arch_assert(const char* file, int line);
|
||||
#define LWIP_PLATFORM_DIAG(x) do {rt_kprintf x;} while(0)
|
||||
#define LWIP_PLATFORM_ASSERT(x) do {rt_kprintf(x); sys_arch_assert(__FILE__, __LINE__);}while(0)
|
||||
|
||||
#include "string.h"
|
||||
#include <string.h>
|
||||
|
||||
#define SYS_ARCH_DECL_PROTECT(level)
|
||||
#define SYS_ARCH_PROTECT(level) rt_enter_critical()
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
|
||||
#define ERRNO 1
|
||||
|
||||
#define LWIP_ERRNO_STDINCLUDE
|
||||
|
||||
#define LWIP_IPV4 1
|
||||
|
||||
#ifdef RT_USING_LWIP_IPV6
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
#define X32_F "lx"
|
||||
|
||||
#ifdef RT_USING_LIBC
|
||||
#include <errno.h>
|
||||
#include <sys/errno.h>
|
||||
#ifndef ENSRNOTFOUND
|
||||
#define ENSRNOTFOUND 163 /* Domain name not found */
|
||||
#endif
|
||||
|
||||
@@ -181,7 +181,7 @@ extern int errno;
|
||||
|
||||
/* Define LWIP_ERRNO_STDINCLUDE if you want to include <errno.h> here */
|
||||
#ifdef LWIP_ERRNO_STDINCLUDE
|
||||
#include <errno.h>
|
||||
#include <sys/errno.h>
|
||||
#else /* LWIP_ERRNO_STDINCLUDE */
|
||||
/* Define LWIP_ERRNO_INCLUDE to an equivalent of <errno.h> to include the error defines here */
|
||||
#ifdef LWIP_ERRNO_INCLUDE
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
#define ERRNO 1
|
||||
|
||||
#define LWIP_ERRNO_STDINCLUDE
|
||||
#define LWIP_SOCKET_SELECT 1
|
||||
#define LWIP_SOCKET_POLL 1
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include <dfs_file.h>
|
||||
#include <dfs_poll.h>
|
||||
#include <dfs_net.h>
|
||||
|
||||
#include <sys/errno.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
int accept(int s, struct sockaddr *addr, socklen_t *addrlen)
|
||||
|
||||
Reference in New Issue
Block a user