summaryrefslogtreecommitdiff
path: root/components/libc
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-02-08 11:30:49 +0800
committerMeco Man <[email protected]>2021-02-08 11:30:49 +0800
commit2645aec2e3b5b805d697b2ec546faeb5157e8d81 (patch)
tree1e4b476737411f823bf336e7fa5e7ef75f576e32 /components/libc
parent3e9c77efd5aac880e2f5d5db895d50c227dda663 (diff)
删除没有用的预编译,在新版的IAR中此已经不需要了
对time函数增加RT_WEAK
Diffstat (limited to 'components/libc')
-rw-r--r--components/libc/compilers/common/time.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/components/libc/compilers/common/time.c b/components/libc/compilers/common/time.c
index bc77aee510..7e4a98f923 100644
--- a/components/libc/compilers/common/time.c
+++ b/components/libc/compilers/common/time.c
@@ -160,16 +160,7 @@ char* ctime(const time_t *timep)
* @return time_t return timestamp current.
*
*/
-#if defined (__IAR_SYSTEMS_ICC__) && (__VER__) >= 6020000 /* for IAR 6.2 later Compiler */
-#pragma module_name = "?time"
-#if _DLIB_TIME_USES_64
-time_t __time64(time_t *t)
-#else
-time_t __time32(time_t *t)
-#endif
-#else /* Keil & GCC */
-time_t time(time_t *t)
-#endif
+RT_WEAK time_t time(time_t *t)
{
time_t time_now = 0;