[lwip][cc]调整string.h位置
This commit is contained in:
parent
b24447a60a
commit
3b74f44d10
@ -37,8 +37,9 @@
|
|||||||
|
|
||||||
#include <rthw.h>
|
#include <rthw.h>
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
|
#include <string.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
typedef uint8_t u8_t;
|
typedef uint8_t u8_t;
|
||||||
typedef int8_t s8_t;
|
typedef int8_t s8_t;
|
||||||
typedef uint16_t u16_t;
|
typedef uint16_t u16_t;
|
||||||
@ -99,11 +100,8 @@ 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>
|
|
||||||
|
|
||||||
#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()
|
||||||
#define SYS_ARCH_UNPROTECT(level) rt_exit_critical()
|
#define SYS_ARCH_UNPROTECT(level) rt_exit_critical()
|
||||||
|
|
||||||
#endif /* __ARCH_CC_H__ */
|
#endif /* __ARCH_CC_H__ */
|
||||||
|
|
||||||
|
@ -37,6 +37,7 @@
|
|||||||
|
|
||||||
#include <rthw.h>
|
#include <rthw.h>
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#define U16_F "hu"
|
#define U16_F "hu"
|
||||||
#define S16_F "hd"
|
#define S16_F "hd"
|
||||||
@ -90,11 +91,8 @@ 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>
|
|
||||||
|
|
||||||
#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()
|
||||||
#define SYS_ARCH_UNPROTECT(level) rt_exit_critical()
|
#define SYS_ARCH_UNPROTECT(level) rt_exit_critical()
|
||||||
|
|
||||||
#endif /* __ARCH_CC_H__ */
|
#endif /* __ARCH_CC_H__ */
|
||||||
|
|
||||||
|
@ -37,6 +37,7 @@
|
|||||||
|
|
||||||
#include <rthw.h>
|
#include <rthw.h>
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#define U16_F "hu"
|
#define U16_F "hu"
|
||||||
#define S16_F "hd"
|
#define S16_F "hd"
|
||||||
@ -90,11 +91,8 @@ 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"
|
|
||||||
|
|
||||||
#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()
|
||||||
#define SYS_ARCH_UNPROTECT(level) rt_exit_critical()
|
#define SYS_ARCH_UNPROTECT(level) rt_exit_critical()
|
||||||
|
|
||||||
#endif /* __ARCH_CC_H__ */
|
#endif /* __ARCH_CC_H__ */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user