Add WEAK definition;

This commit is contained in:
bernard 2014-06-26 14:47:53 +08:00
parent ceaf9cd3fa
commit a1766b6c71
1 changed files with 1 additions and 13 deletions

View File

@ -1081,19 +1081,7 @@ rt_device_t rt_console_set_device(const char *name)
RTM_EXPORT(rt_console_set_device); RTM_EXPORT(rt_console_set_device);
#endif #endif
#if defined(__GNUC__) || defined(__ADSPBLACKFIN__) WEAK void rt_hw_console_output(const char *str)
void rt_hw_console_output(const char *str) __attribute__((weak));
void rt_hw_console_output(const char *str)
#elif defined(__CC_ARM)
__weak void rt_hw_console_output(const char *str)
#elif defined(__IAR_SYSTEMS_ICC__)
#if __VER__ > 540
__weak
#endif
void rt_hw_console_output(const char *str)
#else
void rt_hw_console_output(const char *str)
#endif
{ {
/* empty console output */ /* empty console output */
} }