From 9d7a9d2ef6298b0d3680dc86c76af79da04c2199 Mon Sep 17 00:00:00 2001 From: Carmelo Amoroso Date: Thu, 25 Sep 2008 06:38:21 +0000 Subject: Add globally __stringify macro in libc-symbols.h. Remove all other duplicated definitions. Signed-off-by: Carmelo Amoroso --- include/libc-symbols.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/libc-symbols.h') 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 -- cgit v1.2.3