summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2008-09-25 06:38:21 +0000
committerCarmelo Amoroso <carmelo.amoroso@st.com>2008-09-25 06:38:21 +0000
commit9d7a9d2ef6298b0d3680dc86c76af79da04c2199 (patch)
tree5813cdfdf53668f143a96f7e7f224aa616c026a1 /include
parent3898083f5b4276ed4a2c4803d633962b6a0f9325 (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.h6
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