diff options
author | Jim Meyering <jim@meyering.net> | 2001-10-21 10:55:29 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-10-21 10:55:29 +0000 |
commit | 282ed2051d3acb21631474cde7d3ea2eb24756dc (patch) | |
tree | 869114cce7c0a2f87143d3b45a24f5b70df0f83d | |
parent | 129e2eb33584613a916fd4ded7473f5c996cb3f3 (diff) | |
download | gnulib-282ed2051d3acb21631474cde7d3ea2eb24756dc.tar.gz |
(_): Honor the setting of ENABLE_NLS. Otherwise,
this code would end up calling gettext even in packages built
with --disable-nls.
-rw-r--r-- | lib/getopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/getopt.c b/lib/getopt.c index c66fc8813e..08ba35be36 100644 --- a/lib/getopt.c +++ b/lib/getopt.c @@ -78,7 +78,7 @@ #ifndef _ /* This is for other GNU distributions with internationalized messages. */ -# if defined HAVE_LIBINTL_H || defined _LIBC +# if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC # include <libintl.h> # ifndef _ # define _(msgid) gettext (msgid) |