From 201d2830e685bccde3fdc0adfd736de944339d4f Mon Sep 17 00:00:00 2001 From: armink Date: Mon, 7 May 2018 18:05:10 +0800 Subject: [PATCH] [components/libc] Remove #if defined(RT_USING_RTC) on time.c. --- components/libc/compilers/armlibc/time.c | 2 +- components/libc/compilers/dlib/time.c | 2 +- components/libc/compilers/newlib/time.c | 2 +- 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 #include -#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 #include -#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 #include -#if defined(RT_USING_DEVICE) && defined(RT_USING_RTC) +#ifdef RT_USING_DEVICE int gettimeofday(struct timeval *tp, void *ignore) { time_t time;