Explorar o código

Merge branch 'master' of https://github.com/RT-Thread/rt-thread

pathletboy %!s(int64=10) %!d(string=hai) anos
pai
achega
a50c2cbbb3
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      components/libc/armlibc/libc_syms.c

+ 3 - 1
components/libc/armlibc/libc_syms.c

@@ -27,11 +27,13 @@ RTM_EXPORT(memchr);
 RTM_EXPORT(toupper);
 RTM_EXPORT(toupper);
 RTM_EXPORT(atoi);
 RTM_EXPORT(atoi);
 
 
+#ifdef RT_USING_RTC
 RTM_EXPORT(localtime);
 RTM_EXPORT(localtime);
 RTM_EXPORT(time);
 RTM_EXPORT(time);
+#endif
 
 
 /* import the full stdio for printf */
 /* 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."
 #error "[RT_USING_LIBC] Please use standard libc but not microlib."
 #endif
 #endif