summaryrefslogtreecommitdiff
path: root/components/libc/compilers/common/time.c
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-11-28 22:30:35 -0500
committerMeco Man <[email protected]>2021-11-29 00:53:46 -0500
commit7973ede5a8cacd3a7d4593ae7e76d6fb0dff8e1d (patch)
tree523b091e5f1fc312c0c07c8fef9fc2de4e628f8f /components/libc/compilers/common/time.c
parent4e9744c0acd093efd6fb1da1216d918521d14015 (diff)
增加RT_USING_POSIX_FS
Diffstat (limited to 'components/libc/compilers/common/time.c')
-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 5bfff15914..73b6d76352 100644
--- a/components/libc/compilers/common/time.c
+++ b/components/libc/compilers/common/time.c
@@ -486,8 +486,6 @@ RTM_EXPORT(settimeofday);
RTM_EXPORT(difftime);
RTM_EXPORT(strftime);
-#ifdef RT_USING_POSIX
-
#ifdef RT_USING_RTC
static volatile struct timeval _timevalue;
static int _rt_clock_time_system_init()
@@ -690,9 +688,6 @@ int rt_timespec_to_tick(const struct timespec *time)
}
RTM_EXPORT(rt_timespec_to_tick);
-#endif /* RT_USING_POSIX */
-
-
/* timezone */
#ifndef RT_LIBC_DEFAULT_TIMEZONE
#define RT_LIBC_DEFAULT_TIMEZONE 8