Skip to content

Commit d9b8984

Browse files
authored
Merge pull request #4433 from mysterywolf/clang
[libc][time][bug] 修复ARM6报错的问题
2 parents 8bb2817 + 09c5420 commit d9b8984

File tree

1 file changed

+1
-1
lines changed
  • components/libc/compilers/common/sys

1 file changed

+1
-1
lines changed

components/libc/compilers/common/sys/time.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct timeval {
3838
};
3939
#endif /* _TIMEVAL_DEFINED */
4040

41-
#if !defined __GNUC__ && !defined __ICCARM__
41+
#if !(defined(__GNUC__) && !defined(__ARMCC_VERSION)) && !defined (__ICCARM__)
4242
struct timespec {
4343
time_t tv_sec; /* seconds */
4444
long tv_nsec; /* and nanoseconds */

0 commit comments

Comments
 (0)