summaryrefslogtreecommitdiff
path: root/components/libc/compilers/common/sys
diff options
context:
space:
mode:
authorMeco Jianting Man <[email protected]>2021-03-09 21:11:14 +0800
committerGitHub <[email protected]>2021-03-09 21:11:14 +0800
commit6f32f7cad53d5142ae3057e7cbca1884995d6631 (patch)
treefe7c983aeddf2c8064b071c5f997c8405b97fead /components/libc/compilers/common/sys
parentce86058201432e865b8d7c4096b3675642a43a42 (diff)
parentd9b8984398d1c424a78a840d9159399145f986a0 (diff)
Merge pull request #25 from RT-Thread/master
pr
Diffstat (limited to 'components/libc/compilers/common/sys')
-rw-r--r--components/libc/compilers/common/sys/time.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/libc/compilers/common/sys/time.h b/components/libc/compilers/common/sys/time.h
index e4d60d2d11..5bf5bc5e92 100644
--- a/components/libc/compilers/common/sys/time.h
+++ b/components/libc/compilers/common/sys/time.h
@@ -38,7 +38,7 @@ struct timeval {
};
#endif /* _TIMEVAL_DEFINED */
-#if !defined __GNUC__ && !defined __ICCARM__
+#if !(defined(__GNUC__) && !defined(__ARMCC_VERSION)) && !defined (__ICCARM__)
struct timespec {
time_t tv_sec; /* seconds */
long tv_nsec; /* and nanoseconds */