diff options
-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 |