summaryrefslogtreecommitdiff
path: root/components/libc/compilers/dlib/time.c
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-10-25 21:42:47 +0800
committerBernard Xiong <[email protected]>2018-10-25 21:42:47 +0800
commitd23a65d54ec519b0b1bb844d3b2758b2253d4ff7 (patch)
tree2b7494b3a2f4832306828498210741d3606411bb /components/libc/compilers/dlib/time.c
parent4660882320f8ac3499f74c30dcbaf8f2b40c202f (diff)
parent8483a50d8df8bf652c71d74d678bea48c48cfc92 (diff)
Merge branch 'master' into dev-4.0.x
Diffstat (limited to 'components/libc/compilers/dlib/time.c')
-rw-r--r--components/libc/compilers/dlib/time.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/components/libc/compilers/dlib/time.c b/components/libc/compilers/dlib/time.c
index f61bd5cfca..12c7f893e9 100644
--- a/components/libc/compilers/dlib/time.c
+++ b/components/libc/compilers/dlib/time.c
@@ -1,3 +1,11 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date Author Notes
+ */
#include <sys/time.h>
#include <rtthread.h>
@@ -34,9 +42,9 @@ int gettimeofday(struct timeval *tp, void *ignore)
*/
#pragma module_name = "?time"
#if _DLIB_TIME_ALLOW_64
-time_t __time64(time_t *t)
+__time64_t __time64(__time64_t *t)
#else
-time_t __time32(time_t *t)
+__time32_t __time32(__time32_t *t)
#endif
{
time_t time_now = 0;