瀏覽代碼

[libc] fix time () not found when no RT_USING_RTC defined

tanek liang 7 年之前
父節點
當前提交
be48c3c419
共有 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