[lwip][cc] LWIP_TIMEVAL_PRIVATE: provided by <sys/time.h>

不需要再判断是否开启libc
This commit is contained in:
Meco Man 2021-06-12 18:40:15 +08:00
parent ae0e0bdad4
commit 4c625fcb2f
3 changed files with 3 additions and 12 deletions

View File

@ -63,12 +63,9 @@ typedef uintptr_t mem_ptr_t;
in arch.h has been assigned to another error code. */ in arch.h has been assigned to another error code. */
#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

View File

@ -54,12 +54,9 @@
in arch.h has been assigned to another error code. */ in arch.h has been assigned to another error code. */
#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

View File

@ -54,12 +54,9 @@
in arch.h has been assigned to another error code. */ in arch.h has been assigned to another error code. */
#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