summaryrefslogtreecommitdiff
path: root/components/libc/compilers
diff options
context:
space:
mode:
authorzyh <[email protected]>2018-05-16 11:15:23 +0800
committerzyh <[email protected]>2018-05-16 11:15:23 +0800
commit7577b1a373a36ec4bc72a66cf36dbefb9497f0b1 (patch)
treed8d0d357fc9173f44fed4221270cd2018d683ca8 /components/libc/compilers
parente46e9e6f2130302d04e4ec5dc2e0bfd140520c32 (diff)
parentd4af0828ea9f3c3f5b450418cf015555f5c769e3 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'components/libc/compilers')
-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