Skip to content

Commit

Permalink
2001-11-12 Jim Meyering <[email protected]>
Browse files Browse the repository at this point in the history
	* 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
  • Loading branch information
dj committed Nov 13, 2001
1 parent 2d051b8 commit 448378f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions libiberty/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2001-11-12 Jim Meyering <[email protected]>

* 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 <[email protected]>

* configure.in: Cope with missing makeinfo.
Expand Down
2 changes: 1 addition & 1 deletion libiberty/getopt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion libiberty/obstack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion libiberty/regex.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 448378f

Please sign in to comment.