提交 baeda71e 编写于 作者: D Dryad

修复了g++编译器无法展开自动初始化宏的错误

上级 4e3a7ee2
...@@ -200,11 +200,11 @@ typedef int (*init_fn_t)(void); ...@@ -200,11 +200,11 @@ typedef int (*init_fn_t)(void);
}; };
#define INIT_EXPORT(fn, level) \ #define INIT_EXPORT(fn, level) \
const char __rti_##fn##_name[] = #fn; \ 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}; { __rti_##fn##_name, fn};
#else #else
#define INIT_EXPORT(fn, level) \ #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
#endif #endif
#else #else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册