diff options
| author | Meco Man <[email protected]> | 2022-04-21 13:20:18 -0400 |
|---|---|---|
| committer | guo <[email protected]> | 2022-04-22 22:32:27 +0800 |
| commit | 2774343d971df2ddd44e0b0cd720c4b13126eb70 (patch) | |
| tree | 8b85ad7ecbea0aaf4cbaa4f0198f8574517e3f18 /components | |
| parent | 2c6a279ac3e211fdf104c7bf68056712690aaaf7 (diff) | |
[libc][time] 修复IAR版本判断逻辑错误
Diffstat (limited to 'components')
| -rw-r--r-- | components/libc/compilers/common/sys/time.h | 4 |
1 files 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*/) /* |
