From 448378fcd18e06016e86f553a89e6d66259cc6ab Mon Sep 17 00:00:00 2001 From: dj Date: Tue, 13 Nov 2001 03:46:00 +0000 Subject: 2001-11-12 Jim Meyering * 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 --- libiberty/getopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libiberty/getopt.c') diff --git a/libiberty/getopt.c b/libiberty/getopt.c index fd302b6e636..2402a39e2f8 100644 --- a/libiberty/getopt.c +++ b/libiberty/getopt.c @@ -82,7 +82,7 @@ #ifndef _ /* This is for other GNU distributions with internationalized messages. When compiling libc, the _ macro is predefined. */ -# ifdef HAVE_LIBINTL_H +# if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC # include # define _(msgid) gettext (msgid) # else -- cgit v1.2.1