From 17967fd080face7e64a3c25b323760deab106096 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sun, 13 Mar 2011 15:37:48 +0100 Subject: libintl.h, clnt_perror.c: add fallback gettext(x) and use it for _(x) clnt_perror.c: change _(x) to N_(x) to allow compile with the change in libintl.h Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- include/libintl.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/libintl.h b/include/libintl.h index 6631d0b26..b87909509 100644 --- a/include/libintl.h +++ b/include/libintl.h @@ -127,10 +127,14 @@ extern char *bind_textdomain_codeset (__const char *__domainname, __END_DECLS +#else + +#define gettext(msgid) ((const char *) (msgid)) + #endif /* __UCLIBC_HAS_GETTEXT_AWARENESS__ */ #ifdef _LIBC -# define _(x) x +# define _(x) gettext(x) # define N_(x) x #endif -- cgit v1.2.3