diff options
author | Peng Fan <van.freenix@gmail.com> | 2013-09-05 13:47:18 +0800 |
---|---|---|
committer | Peng Fan <van.freenix@gmail.com> | 2013-09-05 13:47:18 +0800 |
commit | 07d14d4e3239188e4f0ee407d7ae3e49fc71741b (patch) | |
tree | 826668374216a95ed9589b6b087890c84a034904 /rtl.h | |
parent | b25aaa867154306e0cfa6308e1a2b2dfbebb110a (diff) |
Fix symbols which need underscore
To some archs, the symbols are added a '_' prefix. we should handle it.
Diffstat (limited to 'rtl.h')
-rw-r--r-- | rtl.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -49,6 +49,17 @@ extern "C" { */ /** + * Macros to glue two tokens. + */ +#ifdef __STDC__ +#define RTL_XGLUE(a,b) a##b +#else +#define RTL_XGLUE(a,b) a/**/b +#endif + +#define RTL_GLUE(a,b) RTL_XGLUE(a,b) + +/** * The number of buckets in the global symbol table. */ #define RTEMS_RTL_SYMS_GLOBAL_BUCKETS (32) |