From d219f5bfa904100332b7e30380ab83597fbe8b85 Mon Sep 17 00:00:00 2001 From: BernardXiong Date: Sun, 31 Dec 2017 14:44:58 +0800 Subject: [PATCH] [lwIP] code cleanup for Kconfig. 1. code cleanup for Kconfig. 2. fix the compiling warning for BYTE_ORDER. --- components/net/Kconfig | 2 +- components/net/lwip-1.4.1/src/lwipopts.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/components/net/Kconfig b/components/net/Kconfig index 43473af409..750f419cc9 100755 --- a/components/net/Kconfig +++ b/components/net/Kconfig @@ -3,7 +3,7 @@ menu "Network stack" menu "light weight TCP/IP stack" config RT_USING_LWIP bool "Enable lwIP stack" - select RT_USING_DEVICE + select RT_USING_DEVICE default n if RT_USING_LWIP diff --git a/components/net/lwip-1.4.1/src/lwipopts.h b/components/net/lwip-1.4.1/src/lwipopts.h index 8b4d38961e..f07e9d51f5 100644 --- a/components/net/lwip-1.4.1/src/lwipopts.h +++ b/components/net/lwip-1.4.1/src/lwipopts.h @@ -36,7 +36,10 @@ #define LWIP_HAVE_LOOPIF 0 #define LWIP_PLATFORM_BYTESWAP 0 + +#ifndef BYTE_ORDER #define BYTE_ORDER LITTLE_ENDIAN +#endif /* #define RT_LWIP_DEBUG */ -- GitLab