diff options
| author | Bernard Xiong <[email protected]> | 2021-03-09 21:00:15 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-03-09 21:00:15 +0800 |
| commit | d9b8984398d1c424a78a840d9159399145f986a0 (patch) | |
| tree | fe7c983aeddf2c8064b071c5f997c8405b97fead | |
| parent | 8bb2817d35bac26b4455f9cf08cd08f43ec1e77e (diff) | |
| parent | 09c5420d210b534f4fdc4dc867b043f7ba649678 (diff) | |
Merge pull request #4433 from mysterywolf/clang
[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 */ |
