summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2017-09-19 07:07:44 +0800
committerGitHub <[email protected]>2017-09-19 07:07:44 +0800
commita5eea11b02337c64d3282286745b2858a356f35e (patch)
treea2a6bed316e7d3b32cbe2062352efb4983f7bf09 /include
parented46356eb4d8bda0c9358c0f826cc62553c1f4be (diff)
parent85cc2dab69df6bd74726d5fcc479e075db0ca07a (diff)
Merge pull request #849 from geniusgogo/RT_MACRO
rename WEAK to RT_WEAK
Diffstat (limited to 'include')
-rw-r--r--include/rtdef.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index 005c6b846c..e44f39fdd8 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -97,7 +97,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#define RT_UNUSED __attribute__((unused))
#define RT_USED __attribute__((used))
#define ALIGN(n) __attribute__((aligned(n)))
- #define WEAK __weak
+ #define RT_WEAK __weak
#define rt_inline static __inline
/* module compiling */
#ifdef RT_USING_MODULE
@@ -113,7 +113,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#define RT_USED __root
#define PRAGMA(x) _Pragma(#x)
#define ALIGN(n) PRAGMA(data_alignment=n)
- #define WEAK __weak
+ #define RT_WEAK __weak
#define rt_inline static inline
#define RTT_API
@@ -133,7 +133,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#define RT_UNUSED __attribute__((unused))
#define RT_USED __attribute__((used))
#define ALIGN(n) __attribute__((aligned(n)))
- #define WEAK __attribute__((weak))
+ #define RT_WEAK __attribute__((weak))
#define rt_inline static __inline
#define RTT_API
#elif defined (__ADSPBLACKFIN__) /* for VisualDSP++ Compiler */
@@ -142,7 +142,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#define RT_UNUSED __attribute__((unused))
#define RT_USED __attribute__((used))
#define ALIGN(n) __attribute__((aligned(n)))
- #define WEAK __attribute__((weak))
+ #define RT_WEAK __attribute__((weak))
#define rt_inline static inline
#define RTT_API
#elif defined (_MSC_VER)
@@ -151,7 +151,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#define RT_UNUSED
#define RT_USED
#define ALIGN(n) __declspec(align(n))
- #define WEAK
+ #define RT_WEAK
#define rt_inline static __inline
#define RTT_API
#elif defined (__TI_COMPILER_VERSION__)
@@ -164,7 +164,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#define RT_USED
#define PRAGMA(x) _Pragma(#x)
#define ALIGN(n)
- #define WEAK
+ #define RT_WEAK
#define rt_inline static inline
#define RTT_API
#else