diff --git a/components/libc/compilers/armlibc/time.c b/components/libc/compilers/armlibc/time.c index 7b9c2f185bda7a9620f6297582ec0b03cf285d87..29755dca2cc81b274a1eeef0bb2acd11deeaa7c6 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 7b9c2f185bda7a9620f6297582ec0b03cf285d87..29755dca2cc81b274a1eeef0bb2acd11deeaa7c6 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 7b9c2f185bda7a9620f6297582ec0b03cf285d87..29755dca2cc81b274a1eeef0bb2acd11deeaa7c6 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;