summaryrefslogtreecommitdiff
path: root/src/system.h
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2009-11-20 21:49:06 +0100
committerPaolo Bonzini <bonzini@gnu.org>2009-11-20 22:52:21 +0100
commita1801c8bb7d4d8eb2e87832467b2d5539a8d4142 (patch)
tree660619abf1453bd7e4a7ca09d78fd9d8d05fccb9 /src/system.h
parentbc8fb200daa33bc608782fb47b1855e6ad4cff34 (diff)
downloadgrep-a1801c8bb7d4d8eb2e87832467b2d5539a8d4142.tar.gz
use gettext.h
* lib/Makefile.am: Distribute gettext.h. * lib/closeout.c: Use it. * lib/gettext.h: New. * lib/quotearg.c: Use it. * lib/xmalloc.c: Use it. * src/dfa.c: Use it. * src/system.h: Use it.
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/system.h b/src/system.h
index f4875ab7..0f0defda 100644
--- a/src/system.h
+++ b/src/system.h
@@ -189,13 +189,9 @@ ptr_t memchr();
#define TOLOWER(C) (ISUPPER(C) ? tolower(C) : (C))
-#if ENABLE_NLS
-# include <libintl.h>
-# define _(String) gettext (String)
-#else
-# define _(String) String
-#endif
-#define N_(String) String
+#include <gettext.h>
+#define N_(String) gettext_noop(String)
+#define _(String) gettext(String)
#if HAVE_SETLOCALE
# include <locale.h>