diff options
author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-09-25 06:38:21 +0000 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-09-25 06:38:21 +0000 |
commit | 9d7a9d2ef6298b0d3680dc86c76af79da04c2199 (patch) | |
tree | 5813cdfdf53668f143a96f7e7f224aa616c026a1 /include | |
parent | 3898083f5b4276ed4a2c4803d633962b6a0f9325 (diff) |
Add globally __stringify macro in libc-symbols.h.
Remove all other duplicated definitions.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libc-symbols.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libc-symbols.h b/include/libc-symbols.h index e491aff5f..e5e3356fb 100644 --- a/include/libc-symbols.h +++ b/include/libc-symbols.h @@ -82,6 +82,12 @@ # define IS_IN_libc 1 #endif +/* Indirect stringification. Doing two levels allows + * the parameter to be a macro itself. + */ +#define __stringify_1(x) #x +#define __stringify(x) __stringify_1(x) + #ifdef __UCLIBC_HAVE_ASM_SET_DIRECTIVE__ # define HAVE_ASM_SET_DIRECTIVE #else |