summaryrefslogtreecommitdiff
path: root/components/libc/compilers/dlib/sys
diff options
context:
space:
mode:
Diffstat (limited to 'components/libc/compilers/dlib/sys')
-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