summaryrefslogtreecommitdiff
path: root/libiberty/obstack.c
diff options
context:
space:
mode:
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-13 03:46:00 +0000
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-13 03:46:00 +0000
commit448378fcd18e06016e86f553a89e6d66259cc6ab (patch)
treee3ff70258f66c8bf1160f62be4d3297d2c69c55d /libiberty/obstack.c
parent2d051b86f08ef8ce813aec31552d63c380a13738 (diff)
downloadgcc-448378fcd18e06016e86f553a89e6d66259cc6ab.tar.gz
2001-11-12 Jim Meyering <meyering@lucent.com>
* obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise, this code would end up calling gettext even in packages built with --disable-nls. * getopt.c (_): Likewise. * regex.c (_): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46975 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/obstack.c')
-rw-r--r--libiberty/obstack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libiberty/obstack.c b/libiberty/obstack.c
index 0d4a4c88949..02560c9e032 100644
--- a/libiberty/obstack.c
+++ b/libiberty/obstack.c
@@ -451,7 +451,7 @@ _obstack_memory_used (h)
/* Define the error handler. */
#ifndef _
-# ifdef HAVE_LIBINTL_H
+# if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC
# include <libintl.h>
# ifndef _
# define _(Str) gettext (Str)