From 961f5a3dd2c8afa73d76d21a08abe9056c3ac391 Mon Sep 17 00:00:00 2001 From: Frederic Marchal Date: Thu, 5 Mar 2015 15:30:20 +0100 Subject: [PATCH] LC_MESSAGES undeclared by MinGW Including gettext.h produces an error because LC_MESSAGES is not declared by MinGW. To solve this, the gettext.h file isn't included on MinGW and the missing functions are manually declared. --- include/conf.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/conf.h b/include/conf.h index 2b89e1e..aa59b05 100755 --- a/include/conf.h +++ b/include/conf.h @@ -138,7 +138,12 @@ int mkstemps(char *template, int suffixlen); #define mkstemp(template) mkstemps(template,0) #endif +#ifdef __MINGW32__ +#define pgettext(msgctxt,msgid) (msgid) +#define ngettext(singular,plural,number) (plural) +#else #include "gettext.h" +#endif #if defined(ENABLE_NLS) && defined(HAVE_LIBINTL_H) #define _(String) gettext(String) #ifdef gettext_noop -- 2.47.2