From 8e8fd5439a1223a0ac7ac9fcd26e3e012204b349 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 12 Mar 1996 03:06:47 +0000 Subject: [PATCH] Add definitions and includes for NLS. --- src/system.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/system.h b/src/system.h index aecd17fe1..de8aedbc4 100644 --- a/src/system.h +++ b/src/system.h @@ -323,3 +323,21 @@ char *alloca (); #define __P(args) () #endif /* GCC. */ #endif /* Not __P. */ + +/* Take care of NLS matters. */ + +#if HAVE_LOCALE_H +# include +#endif +#if !HAVE_SETLOCALE +# define setlocale(Category, Locale) /* empty */ +#endif + +#if ENABLE_NLS +# include +# define _(Text) gettext (Text) +#else +# define bindtextdomain(Domain, Directory) /* empty */ +# define textdomain(Domain) /* empty */ +# define _(Text) Text +#endif -- 2.11.4.GIT