diff options
author | Jim Meyering <jim@meyering.net> | 1996-03-12 03:06:47 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-03-12 03:06:47 +0000 |
commit | 8e8fd5439a1223a0ac7ac9fcd26e3e012204b349 (patch) | |
tree | 974d9967f622f491f06631906d5a70749d72e1f0 /src | |
parent | d3bcbd996806726e369758dc33dc001d08690bc4 (diff) | |
download | coreutils-8e8fd5439a1223a0ac7ac9fcd26e3e012204b349.tar.xz |
Add definitions and includes for NLS.
Diffstat (limited to 'src')
-rw-r--r-- | src/system.h | 18 |
1 files changed, 18 insertions, 0 deletions
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 <locale.h> +#endif +#if !HAVE_SETLOCALE +# define setlocale(Category, Locale) /* empty */ +#endif + +#if ENABLE_NLS +# include <libintl.h> +# define _(Text) gettext (Text) +#else +# define bindtextdomain(Domain, Directory) /* empty */ +# define textdomain(Domain) /* empty */ +# define _(Text) Text +#endif |