From 48a59d1b440d9ea60bcdbbcdf7365b52215ed018 Mon Sep 17 00:00:00 2001 From: ArdaFu Date: Mon, 14 May 2018 00:12:29 +0800 Subject: [PATCH] [Componment] libc: Modify skip timespec define condication. Change IAR version from 8.11.2 to 8.10.1 --- components/libc/compilers/dlib/sys/time.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/libc/compilers/dlib/sys/time.h b/components/libc/compilers/dlib/sys/time.h index ac5274506..1acb83603 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