changeset 681:c952aa1385fd

(ENABLE_NLS): Include libintl.h and define _ to gettext.
author Jim Meyering <jim@meyering.net>
date Mon, 02 Sep 1996 16:18:48 +0000
parents d794d4ea2333
children 8356321f3b4c
files lib/rpmatch.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/rpmatch.c
+++ b/lib/rpmatch.c
@@ -26,8 +26,11 @@
 
 #include <regex.h>
 
-#ifndef _
-# define _(String) String
+#if ENABLE_NLS
+# include <libintl.h>
+# define _(Text) gettext (Text)
+#else
+# define _(Text) Text
 #endif
 
 static int