4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-30 03:30:26 +08:00

[libc] Does export time API if RTC component is not used.

This commit is contained in:
Bernard Xiong 2015-11-22 10:58:19 +08:00
parent 9d46ae69a7
commit 83404b825b

View File

@ -27,11 +27,13 @@ RTM_EXPORT(memchr);
RTM_EXPORT(toupper);
RTM_EXPORT(atoi);
#ifdef RT_USING_RTC
RTM_EXPORT(localtime);
RTM_EXPORT(time);
#endif
/* import the full stdio for printf */
#ifdef __MICROLIB
#if defined(RT_USING_MODULE) && defined(__MICROLIB)
#error "[RT_USING_LIBC] Please use standard libc but not microlib."
#endif