소스 검색

[components/libc] Remove #if defined(RT_USING_RTC) on time.c.

armink 7 년 전
부모
커밋
201d2830e6
3개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      components/libc/compilers/armlibc/time.c
  2. 1 1
      components/libc/compilers/dlib/time.c
  3. 1 1
      components/libc/compilers/newlib/time.c

+ 1 - 1
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;

+ 1 - 1
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;

+ 1 - 1
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;