summaryrefslogtreecommitdiff
path: root/lib/obstack.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-10-21 09:01:24 +0000
committerJim Meyering <jim@meyering.net>2001-10-21 09:01:24 +0000
commit8f67d26ec050b146a60ad52a87fc5743e2291aec (patch)
tree9c0434abc7175f531adb9125bf9251d6965b9325 /lib/obstack.c
parentb96446bf599d8abf33b5daf98b2b0307bc86b8a8 (diff)
downloadcoreutils-8f67d26ec050b146a60ad52a87fc5743e2291aec.tar.xz
(_): Honor the setting of ENABLE_NLS. Otherwise,
this code would end up calling gettext even in packages built with --disable-nls.
Diffstat (limited to 'lib/obstack.c')
-rw-r--r--lib/obstack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/obstack.c b/lib/obstack.c
index 7b1206c13..0244da383 100644
--- a/lib/obstack.c
+++ b/lib/obstack.c
@@ -459,7 +459,7 @@ _obstack_memory_used (h)
/* Define the error handler. */
# ifndef _
-# if defined HAVE_LIBINTL_H || defined _LIBC
+# if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC
# include <libintl.h>
# ifndef _
# define _(Str) gettext (Str)