瀏覽代碼

Merge pull request #4433 from mysterywolf/clang

[libc][time][bug] 修复ARM6报错的问题
Bernard Xiong 4 年之前
父節點
當前提交
d9b8984398
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/libc/compilers/common/sys/time.h

+ 1 - 1
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 */