Merge pull request #936 from TanekLiang/stubs_time

[libc] fix time () not found when no RT_USING_RTC defined
This commit is contained in:
Bernard Xiong 2017-11-01 19:40:45 +08:00 committed by GitHub
commit 40c0155bdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

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