summaryrefslogtreecommitdiff
path: root/libiberty/regex.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@lucent.com>2001-11-13 03:46:00 +0000
committerDJ Delorie <dj@gcc.gnu.org>2001-11-12 22:46:00 -0500
commit2e68303737f0922831d288bbd32082818dfd3c09 (patch)
treee3ff70258f66c8bf1160f62be4d3297d2c69c55d /libiberty/regex.c
parent77e653add2cc3e5acf449084f538c565285dcb02 (diff)
downloadgcc-2e68303737f0922831d288bbd32082818dfd3c09.tar.gz
obstack.c (_): Honor the setting of ENABLE_NLS.
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. From-SVN: r46975
Diffstat (limited to 'libiberty/regex.c')
-rw-r--r--libiberty/regex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libiberty/regex.c b/libiberty/regex.c
index e68df05818c..2852e849fa8 100644
--- a/libiberty/regex.c
+++ b/libiberty/regex.c
@@ -95,7 +95,7 @@
# endif
/* This is for other GNU distributions with internationalized messages. */
-# if HAVE_LIBINTL_H || defined _LIBC
+# if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC
# include <libintl.h>
# ifdef _LIBC
# undef gettext