summaryrefslogtreecommitdiff
path: root/include/libintl.h
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-13 15:37:48 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:23 +0200
commit17967fd080face7e64a3c25b323760deab106096 (patch)
tree722c0d9bab583802c95680d8ea23aa117c7cdccc /include/libintl.h
parentd6bc454fcbb0ffea534f49bfb990422a3f93807c (diff)
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 <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'include/libintl.h')
-rw-r--r--include/libintl.h6
1 files changed, 5 insertions, 1 deletions
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