From: Bruno Haible Date: Wed, 1 Apr 2026 22:27:53 +0000 (+0200) Subject: gettext.h: Pull a patch from gnulib. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7964b974befead6aef8908d886eff3c8bad5e239;p=thirdparty%2Fgettext.git gettext.h: Pull a patch from gnulib. * gnulib-local/lib/gettext.h (LC_MESSAGES): Define fallback like in gnulib/lib/locale.in.h. --- diff --git a/gnulib-local/lib/gettext.h b/gnulib-local/lib/gettext.h index e6cea2868..9653c7386 100644 --- a/gnulib-local/lib/gettext.h +++ b/gnulib-local/lib/gettext.h @@ -178,6 +178,11 @@ dcgettext (const char *domain, const char *msgid, int category) The letter 'p' stands for 'particular' or 'special'. */ #include /* for LC_MESSAGES */ +/* The LC_MESSAGES locale category is specified in POSIX, but not in ISO C. + On systems that don't define it, use the same value as GNU libintl. */ +#if !defined LC_MESSAGES +# define LC_MESSAGES 1729 +#endif #ifdef DEFAULT_TEXT_DOMAIN # define pgettext(Msgctxt, Msgid) \