소스 검색

Merge pull request #936 from TanekLiang/stubs_time

[libc] fix time () not found when no RT_USING_RTC defined
Bernard Xiong 7 년 전
부모
커밋
40c0155bdf
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      components/libc/compilers/armlibc/stubs.c

+ 9 - 0
components/libc/compilers/armlibc/stubs.c

@@ -327,3 +327,12 @@ int fgetc(FILE *f)
     return -1;
 }
 #endif
+
+#ifndef RT_USING_RTC
+time_t time(time_t *t)
+{
+	time_t time_now = 0;
+	
+	return time_now;
+}
+#endif