From: Frederic Marchal Date: Thu, 5 Mar 2015 14:30:20 +0000 (+0100) Subject: LC_MESSAGES undeclared by MinGW X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=961f5a3dd2c8afa73d76d21a08abe9056c3ac391;p=thirdparty%2Fsarg.git 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. --- 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