diff options
| author | armink <[email protected]> | 2017-10-09 22:08:52 +0800 |
|---|---|---|
| committer | armink <[email protected]> | 2017-10-09 22:10:51 +0800 |
| commit | 00c154ccdb32e37541cc908d09d35d59761f540f (patch) | |
| tree | ef9a011e9b998002cd77434d16ea5681d687c02b | |
| parent | f8a1bf6fd809be4ce53d17bde1a367aa6bae8187 (diff) | |
[lwIP] Fix the lwIP 2.0.2 IAR compile error when the `RT_LWIP_USING_RT_MEM` macro is not defined.
| -rw-r--r-- | components/net/lwip-2.0.2/src/include/lwip/arch.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/net/lwip-2.0.2/src/include/lwip/arch.h b/components/net/lwip-2.0.2/src/include/lwip/arch.h index 6c47cbc881..42f47778ae 100644 --- a/components/net/lwip-2.0.2/src/include/lwip/arch.h +++ b/components/net/lwip-2.0.2/src/include/lwip/arch.h @@ -203,8 +203,7 @@ typedef uintptr_t mem_ptr_t; * \#define LWIP_DECLARE_MEMORY_ALIGNED(variable_name, size) u32_t variable_name[(size + sizeof(u32_t) - 1) / sizeof(u32_t)] */ #ifndef LWIP_DECLARE_MEMORY_ALIGNED -//#define LWIP_DECLARE_MEMORY_ALIGNED(variable_name, size) u8_t variable_name[LWIP_MEM_ALIGN_BUFFER(size)] -#define LWIP_DECLARE_MEMORY_ALIGNED(variable_name, size) u8_t variable_name[size] __attribute__((aligned(4))) +#define LWIP_DECLARE_MEMORY_ALIGNED(variable_name, size) u8_t variable_name[LWIP_MEM_ALIGN_BUFFER(size)] #endif |
