OSDN Git Service

- disable gettext support in obstack.
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 25 Sep 2008 13:56:40 +0000 (13:56 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 25 Sep 2008 13:56:40 +0000 (13:56 -0000)
  In function `print_and_abort':
  obstack.c:(.text.print_and_abort+0x1b): undefined reference to `__dcgettext'

libc/misc/gnu/obstack.c

index 246d164..8ed3e8a 100644 (file)
@@ -474,11 +474,11 @@ _obstack_memory_used (
 
 /* Define the error handler.  */
 # ifndef _
-/* #  if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC */
-#  ifdef __UCLIBC_HAS_GETTEXT_AWARENESS__
+#  if ((HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC) && \
+      defined __UCLIBC_HAS_GETTEXT_AWARENESS__ && 00
 #   include <libintl.h>
 #   ifndef _
-#    define _(Str) __dcgettext (NULL, Str, LC_MESSAGES)
+#    define _(Str) INTUSE(__dcgettext) (NULL, Str, LC_MESSAGES)
 #   endif
 #  else
 #   define _(Str) (Str)