From 602dbcb26e9591922ca94f5b326694a2309fff18 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 10 Jan 2014 10:07:39 -0500 Subject: move gettext logic into misc.h This lets us autogenerate config.h using autoheader rather than hand maintain it. --- include/misc.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'include/misc.h') diff --git a/include/misc.h b/include/misc.h index 0c5fdcc..a4fa70e 100644 --- a/include/misc.h +++ b/include/misc.h @@ -15,9 +15,26 @@ along with this program. If not, see . */ +#ifndef __MISC_H +#define __MISC_H + +#include + extern int high_water_alloc(void **buf, size_t *bufsize, size_t newsize); 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 +# define _(x) gettext(x) +#else +# define _(x) (x) +# define textdomain(d) do { } while (0) +# define bindtextdomain(d,dir) do { } while (0) +#endif +#include + +#endif -- cgit v1.2.1