diff options
Diffstat (limited to 'include/misc.h')
-rw-r--r-- | include/misc.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/misc.h b/include/misc.h index 0c5fdcc..ae2570a 100644 --- a/include/misc.h +++ b/include/misc.h @@ -21,3 +21,13 @@ extern const char *quote(const char *str, const char *quote_chars); extern char *unquote(char *str); extern char *next_line(FILE *file); + +#ifdef ENABLE_NLS +# include <libintl.h> +# define _(x) gettext(x) +#else +# define _(x) (x) +# define textdomain(d) do { } while (0) +# define bindtextdomain(d,dir) do { } while (0) +#endif +#include <locale.h> |