diff options
author | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-13 03:46:00 +0000 |
---|---|---|
committer | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-13 03:46:00 +0000 |
commit | 448378fcd18e06016e86f553a89e6d66259cc6ab (patch) | |
tree | e3ff70258f66c8bf1160f62be4d3297d2c69c55d | |
parent | 2d051b86f08ef8ce813aec31552d63c380a13738 (diff) | |
download | gcc-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
-rw-r--r-- | libiberty/ChangeLog | 8 | ||||
-rw-r--r-- | libiberty/getopt.c | 2 | ||||
-rw-r--r-- | libiberty/obstack.c | 2 | ||||
-rw-r--r-- | libiberty/regex.c | 2 |
4 files changed, 11 insertions, 3 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index cd68c5b3921..3b72a0cf460 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,11 @@ +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. + 2001-11-03 Alan Modra <amodra@bigpond.net.au> * configure.in: Cope with missing makeinfo. 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 <libintl.h> # define _(msgid) gettext (msgid) # else 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) 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 |