summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDryad <[email protected]>2019-10-28 10:38:05 +0800
committerDryad <[email protected]>2019-10-28 10:38:05 +0800
commitbaeda71eaa8c00b7741365dd5fef09207ce4d743 (patch)
tree7891ae318c786dfaf92dd745879141e015384a4f /include
parent4e3a7ee2f759edc7d27468c3e37f15ce284990e7 (diff)
修复了g++编译器无法展开自动初始化宏的错误
Diffstat (limited to 'include')
-rw-r--r--include/rtdef.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index 3dc8a2a2a9..ca7887e40d 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -200,11 +200,11 @@ typedef int (*init_fn_t)(void);
};
#define INIT_EXPORT(fn, level) \
const char __rti_##fn##_name[] = #fn; \
- RT_USED const struct rt_init_desc __rt_init_desc_##fn SECTION(".rti_fn."level) = \
+ RT_USED const struct rt_init_desc __rt_init_desc_##fn SECTION(".rti_fn." level) = \
{ __rti_##fn##_name, fn};
#else
#define INIT_EXPORT(fn, level) \
- RT_USED const init_fn_t __rt_init_##fn SECTION(".rti_fn."level) = fn
+ RT_USED const init_fn_t __rt_init_##fn SECTION(".rti_fn." level) = fn
#endif
#endif
#else