浏览代码

[Componment] libc: Modify skip timespec define condication. Change IAR version from 8.11.2 to 8.10.1

ArdaFu 7 年之前
父节点
当前提交
48a59d1b44
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      components/libc/compilers/dlib/sys/time.h

+ 4 - 1
components/libc/compilers/dlib/sys/time.h

@@ -20,7 +20,10 @@ struct timeval {
 };
 #endif /* _TIMEVAL_DEFINED */
 
-#if defined ( __ICCARM__ ) && (__VER__ >= 8011002)
+/*
+ * Skip define timespec for IAR version over 8.10.1 where __VER__ is 8010001.
+ */
+#if defined ( __ICCARM__ ) && (__VER__ >= 8010001)
 #define _TIMESPEC_DEFINED
 #endif