summaryrefslogtreecommitdiff
path: root/libc/misc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-12-01 19:08:52 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2016-12-02 08:02:28 +0100
commit50aba30aee11d4fa51948c6ba258ec0bbdbae8c0 (patch)
tree84cdec45cf2982a4e3778bc391dcdcae14bd78d0 /libc/misc
parented10e944ac7f9b4d55dc130987274a2799a115b1 (diff)
remove libintl stub and libintl.h header
As __UCLIBC_HAS_GETTEXT_AWARENESS__ is never defined, this is mostly dead code. It is planned to integrate libiconv-tiny and gettext-tiny into uClibc-ng after the next release, so that more software packages can be used without modification. Remove any _/_N macro usage.
Diffstat (limited to 'libc/misc')
-rw-r--r--libc/misc/gnu/obstack.c4
-rw-r--r--libc/misc/regex/regex_old.c9
2 files changed, 2 insertions, 11 deletions
diff --git a/libc/misc/gnu/obstack.c b/libc/misc/gnu/obstack.c
index 6acc567b3..a5c646832 100644
--- a/libc/misc/gnu/obstack.c
+++ b/libc/misc/gnu/obstack.c
@@ -403,9 +403,7 @@ _obstack_memory_used (struct obstack *h)
}
/* Define the error handler. */
-# ifdef _LIBC
-# include <libintl.h>
-# else
+# ifndef _LIBC
# include "gettext.h"
# endif
# ifndef _
diff --git a/libc/misc/regex/regex_old.c b/libc/misc/regex/regex_old.c
index fa5de7a28..9d8182ead 100644
--- a/libc/misc/regex/regex_old.c
+++ b/libc/misc/regex/regex_old.c
@@ -76,14 +76,7 @@
# include <locale/coll-lookup.h>
# endif
-/* This is for other GNU distributions with internationalized messages. */
-# if defined HAVE_LIBINTL_H || defined _LIBC
-# include <libintl.h>
-# ifdef _LIBC
-# undef gettext
-# define gettext(msgid) __dcgettext ("libc", msgid, LC_MESSAGES)
-# endif
-# else
+# ifndef gettext
# define gettext(msgid) (msgid)
# endif