From 2774343d971df2ddd44e0b0cd720c4b13126eb70 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Thu, 21 Apr 2022 13:20:18 -0400 Subject: [PATCH] =?UTF-8?q?[libc][time]=20=E4=BF=AE=E5=A4=8DIAR=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=88=A4=E6=96=AD=E9=80=BB=E8=BE=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/libc/compilers/common/sys/time.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/libc/compilers/common/sys/time.h b/components/libc/compilers/common/sys/time.h index 3fe6ae4a26..69d85fe094 100644 --- a/components/libc/compilers/common/sys/time.h +++ b/components/libc/compilers/common/sys/time.h @@ -54,13 +54,13 @@ struct timeval }; #endif /* !defined(_TIMEVAL_DEFINED) && !defined(_WIN32) */ -#if defined(__ARMCC_VERSION) || defined(_WIN32) || (defined(__ICCARM__) && (__VER__ >= 8010001)) +#if defined(__ARMCC_VERSION) || defined(_WIN32) || (defined(__ICCARM__) && (__VER__ < 8010001)) struct timespec { time_t tv_sec; /* seconds */ long tv_nsec; /* and nanoseconds */ }; -#endif /* defined(__ARMCC_VERSION) || defined(_WIN32) || (defined(__ICCARM__) && (__VER__ >= 8010001)) */ +#endif /* defined(__ARMCC_VERSION) || defined(_WIN32) || (defined(__ICCARM__) && (__VER__ < 8010001)) */ #if !(defined(__GNUC__) && !defined(__ARMCC_VERSION)/*GCC*/) /* -- GitLab