summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2015-11-22 10:58:19 +0800
committerBernard Xiong <[email protected]>2015-11-22 10:58:19 +0800
commit83404b825bf2723fa1df54471e5232549c2d7ff0 (patch)
tree4ea0560cdc5d26d21e629fa7578fd629df9016dc /components
parent9d46ae69a724aeccf841a403e5bdee263728c482 (diff)
[libc] Does export time API if RTC component is not used.
Diffstat (limited to 'components')
-rw-r--r--components/libc/armlibc/libc_syms.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/libc/armlibc/libc_syms.c b/components/libc/armlibc/libc_syms.c
index 847c48544a..fc84aec77a 100644
--- a/components/libc/armlibc/libc_syms.c
+++ b/components/libc/armlibc/libc_syms.c
@@ -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