summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-02-08 10:55:08 +0800
committerMeco Man <[email protected]>2021-02-08 10:55:08 +0800
commit3e9c77efd5aac880e2f5d5db895d50c227dda663 (patch)
treed98e36117bb320819f2db7f9fdf7d7203824be50
parent9b428e519fc91204f4be5e91f1436ba6fd63119b (diff)
优化IAR
-rw-r--r--components/libc/compilers/common/time.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/components/libc/compilers/common/time.c b/components/libc/compilers/common/time.c
index bd251d99bf..bc77aee510 100644
--- a/components/libc/compilers/common/time.c
+++ b/components/libc/compilers/common/time.c
@@ -18,9 +18,6 @@
#include <rtdevice.h>
#endif
-
-#if !defined (__IAR_SYSTEMS_ICC__)
-
/* seconds per day */
#define SPD 24*60*60
@@ -155,8 +152,6 @@ char* ctime(const time_t *timep)
return asctime(localtime(timep));
}
-#endif /* __IAR_SYSTEMS_ICC__ */
-
/**
* Returns the current time.
*