|
@@ -54,24 +54,18 @@ typedef uintptr_t mem_ptr_t;
|
|
#define S32_F "ld"
|
|
#define S32_F "ld"
|
|
#define X32_F "lx"
|
|
#define X32_F "lx"
|
|
|
|
|
|
-#ifdef RT_USING_LIBC
|
|
|
|
-#if !defined(__CC_ARM) && !defined(__IAR_SYSTEMS_ICC__)
|
|
|
|
-
|
|
|
|
|
|
+#include <sys/errno.h>
|
|
/* some errno not defined in newlib */
|
|
/* some errno not defined in newlib */
|
|
|
|
+#ifndef ENSRNOTFOUND
|
|
#define ENSRNOTFOUND 163 /* Domain name not found */
|
|
#define ENSRNOTFOUND 163 /* Domain name not found */
|
|
/* WARNING: ESHUTDOWN also not defined in newlib. We chose
|
|
/* WARNING: ESHUTDOWN also not defined in newlib. We chose
|
|
180 here because the number "108" which is used
|
|
180 here because the number "108" which is used
|
|
in arch.h has been assigned to another error code. */
|
|
in arch.h has been assigned to another error code. */
|
|
-#define ESHUTDOWN 180
|
|
|
|
-#endif /* __CC_ARM/__IAR_SYSTEMS_ICC__ */
|
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-#if defined(RT_USING_LIBC) || defined(RT_LIBC_USING_TIME) || (defined( __GNUC__ ) && !defined(__ARMCC_VERSION))
|
|
|
|
|
|
+/* LWIP_TIMEVAL_PRIVATE: provided by <sys/time.h> */
|
|
#include <sys/time.h>
|
|
#include <sys/time.h>
|
|
#define LWIP_TIMEVAL_PRIVATE 0
|
|
#define LWIP_TIMEVAL_PRIVATE 0
|
|
-#else
|
|
|
|
-#define LWIP_TIMEVAL_PRIVATE 1
|
|
|
|
-#endif
|
|
|
|
|
|
|
|
#if defined(__CC_ARM) /* ARMCC compiler */
|
|
#if defined(__CC_ARM) /* ARMCC compiler */
|
|
#define PACK_STRUCT_FIELD(x) x
|
|
#define PACK_STRUCT_FIELD(x) x
|
|
@@ -105,7 +99,7 @@ void sys_arch_assert(const char* file, int line);
|
|
#define LWIP_PLATFORM_DIAG(x) do {rt_kprintf x;} while(0)
|
|
#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)
|
|
#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_DECL_PROTECT(level)
|
|
#define SYS_ARCH_PROTECT(level) rt_enter_critical()
|
|
#define SYS_ARCH_PROTECT(level) rt_enter_critical()
|