summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbernard <[email protected]>2014-06-26 14:47:53 +0800
committerbernard <[email protected]>2014-06-26 14:47:53 +0800
commita1766b6c7131f93cf7c641ec96d3bd08b7b86360 (patch)
treed5fd0274bb7cca8df6500322aa07e7948d6a48d4 /src
parentceaf9cd3fabc142177ea50da758cdc0cb659e61f (diff)
Add WEAK definition;
Diffstat (limited to 'src')
-rw-r--r--src/kservice.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/kservice.c b/src/kservice.c
index 0f06806087..cb0064f38b 100644
--- a/src/kservice.c
+++ b/src/kservice.c
@@ -1081,19 +1081,7 @@ rt_device_t rt_console_set_device(const char *name)
RTM_EXPORT(rt_console_set_device);
#endif
-#if defined(__GNUC__) || defined(__ADSPBLACKFIN__)
-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
+WEAK void rt_hw_console_output(const char *str)
{
/* empty console output */
}