changeset 3552:a21efb4d3486

(_): Honor the setting of ENABLE_NLS. Otherwise, this code would end up calling gettext even in packages built with --disable-nls.
author Jim Meyering <jim@meyering.net>
date Sun, 21 Oct 2001 09:01:24 +0000
parents bde8c26243db
children 1135363fd994
files lib/obstack.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/obstack.c
+++ b/lib/obstack.c
@@ -459,7 +459,7 @@
 
 /* Define the error handler.  */
 # ifndef _
-#  if defined HAVE_LIBINTL_H || defined _LIBC
+#  if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC
 #   include <libintl.h>
 #   ifndef _
 #    define _(Str) gettext (Str)