summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--components/libc/compilers/armlibc/time.c2
-rw-r--r--components/libc/compilers/dlib/time.c2
-rw-r--r--components/libc/compilers/newlib/time.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/components/libc/compilers/armlibc/time.c b/components/libc/compilers/armlibc/time.c
index 7b9c2f185b..29755dca2c 100644
--- a/components/libc/compilers/armlibc/time.c
+++ b/components/libc/compilers/armlibc/time.c
@@ -1,7 +1,7 @@
#include <sys/time.h>
#include <rtthread.h>
-#if defined(RT_USING_DEVICE) && defined(RT_USING_RTC)
+#ifdef RT_USING_DEVICE
int gettimeofday(struct timeval *tp, void *ignore)
{
time_t time;
diff --git a/components/libc/compilers/dlib/time.c b/components/libc/compilers/dlib/time.c
index 7b9c2f185b..29755dca2c 100644
--- a/components/libc/compilers/dlib/time.c
+++ b/components/libc/compilers/dlib/time.c
@@ -1,7 +1,7 @@
#include <sys/time.h>
#include <rtthread.h>
-#if defined(RT_USING_DEVICE) && defined(RT_USING_RTC)
+#ifdef RT_USING_DEVICE
int gettimeofday(struct timeval *tp, void *ignore)
{
time_t time;
diff --git a/components/libc/compilers/newlib/time.c b/components/libc/compilers/newlib/time.c
index 7b9c2f185b..29755dca2c 100644
--- a/components/libc/compilers/newlib/time.c
+++ b/components/libc/compilers/newlib/time.c
@@ -1,7 +1,7 @@
#include <sys/time.h>
#include <rtthread.h>
-#if defined(RT_USING_DEVICE) && defined(RT_USING_RTC)
+#ifdef RT_USING_DEVICE
int gettimeofday(struct timeval *tp, void *ignore)
{
time_t time;