From d45d23a96a977b87941dd2090a06b45be0ef1750 Mon Sep 17 00:00:00 2001 From: "gary.li.wenchao.4" Date: Sun, 14 Mar 2010 11:54:17 +0000 Subject: [PATCH] fixed kservice.c compiling error for gcc git-svn-id: https://rt-thread.googlecode.com/svn/trunk@482 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- src/kservice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kservice.c b/src/kservice.c index 9d97323950..7573769d47 100644 --- a/src/kservice.c +++ b/src/kservice.c @@ -939,7 +939,7 @@ rt_device_t rt_console_set_device(const char* name) } #if defined(__GNUC__) -void rt_hw_console_output(const char* str) __attribute__((weak)) +void __attribute__((weak)) rt_hw_console_output(const char* str) #elif defined(__CC_ARM) __weak void rt_hw_console_output(const char* str) #elif defined(__ICCARM__)