From 1bb22e30754a064f8664beaf902d6061118b2e70 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 25 Apr 2002 15:38:17 +0000 Subject: [PATCH] Remove ENABLE_NLS-related code. (_, N_) Remove definitions. Include "gettext.h" instead. --- src/sys2.h | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/src/sys2.h b/src/sys2.h index 610c1fd..909b7d9 100644 --- a/src/sys2.h +++ b/src/sys2.h @@ -260,27 +260,14 @@ char *alloca (); #if HAVE_LOCALE_H # include -#endif -#if !HAVE_SETLOCALE +#else # define setlocale(Category, Locale) /* empty */ #endif -#if ENABLE_NLS -# include -# if HAVE_GETTEXT && !HAVE_DCGETTEXT && !defined dcgettext -# define dcgettext(Domain, Text, Category) Text -# endif -# define _(Text) gettext (Text) -#else -# undef bindtextdomain -# define bindtextdomain(Domain, Directory) /* empty */ -# undef textdomain -# define textdomain(Domain) /* empty */ -# undef dcgettext -# define dcgettext(Domainname, Text, Category) Text -# define _(Text) Text -#endif -#define N_(Text) Text +#include "gettext.h" + +#define _(msgid) gettext (msgid) +#define N_(msgid) msgid #define STREQ(a, b) (strcmp ((a), (b)) == 0) -- 2.7.4