summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorArdaFu <[email protected]>2018-05-14 00:12:29 +0800
committerArdaFu <[email protected]>2018-05-14 00:12:29 +0800
commit48a59d1b440d9ea60bcdbbcdf7365b52215ed018 (patch)
treefaafd29303904c753f21e6b2d26034d021a58a04 /components
parent45645be9d24dbac576f72bf685801ad7eb6f0e2a (diff)
[Componment] libc: Modify skip timespec define condication. Change IAR version from 8.11.2 to 8.10.1
Diffstat (limited to 'components')
-rw-r--r--components/libc/compilers/dlib/sys/time.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/components/libc/compilers/dlib/sys/time.h b/components/libc/compilers/dlib/sys/time.h
index ac52745064..1acb836032 100644
--- a/components/libc/compilers/dlib/sys/time.h
+++ b/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