summaryrefslogtreecommitdiff
path: root/include/libintl.h
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-12 22:52:58 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:22 +0200
commitef7472070942a527be96d3dceface75c8c96d365 (patch)
tree14d614df17fdc5cb540594dfa63f94e31afb7f24 /include/libintl.h
parent0dd1ccafa75e63f7688e6d55a0158d39ae3aa060 (diff)
libintl.h: add _(x) and N_(x) and use it everywhere
remove _LIBC part from rpc headers include libintl.h to rpc_private.h and use that instead of rpc.h include libintl.h anywhere else needed replacing _(x) and N_(x) 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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/libintl.h b/include/libintl.h
index be3969fff..6631d0b26 100644
--- a/include/libintl.h
+++ b/include/libintl.h
@@ -23,6 +23,8 @@
#include <features.h>
+#ifdef __UCLIBC_HAS_GETTEXT_AWARENESS__
+
/* We define an additional symbol to signal that we use the GNU
implementation of gettext. */
#define __USE_GNU_GETTEXT 1
@@ -125,4 +127,11 @@ extern char *bind_textdomain_codeset (__const char *__domainname,
__END_DECLS
+#endif /* __UCLIBC_HAS_GETTEXT_AWARENESS__ */
+
+#ifdef _LIBC
+# define _(x) x
+# define N_(x) x
+#endif
+
#endif /* libintl.h */