diff options
| author | Meco Man <[email protected]> | 2021-03-09 17:51:35 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-03-09 17:51:35 +0800 |
| commit | 09c5420d210b534f4fdc4dc867b043f7ba649678 (patch) | |
| tree | 3f01be98fecde3908e41090b3e244a923d264656 | |
| parent | ce86058201432e865b8d7c4096b3675642a43a42 (diff) | |
[libc][time][bug] 修复ARM6报错的问题
| -rw-r--r-- | components/libc/compilers/common/sys/time.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/libc/compilers/common/sys/time.h b/components/libc/compilers/common/sys/time.h index e4d60d2d11..5bf5bc5e92 100644 --- a/components/libc/compilers/common/sys/time.h +++ b/components/libc/compilers/common/sys/time.h @@ -38,7 +38,7 @@ struct timeval { }; #endif /* _TIMEVAL_DEFINED */ -#if !defined __GNUC__ && !defined __ICCARM__ +#if !(defined(__GNUC__) && !defined(__ARMCC_VERSION)) && !defined (__ICCARM__) struct timespec { time_t tv_sec; /* seconds */ long tv_nsec; /* and nanoseconds */ |
