]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
gettext.h: Pull a patch from gnulib.
authorBruno Haible <bruno@clisp.org>
Wed, 1 Apr 2026 22:27:53 +0000 (00:27 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 1 Apr 2026 22:27:53 +0000 (00:27 +0200)
* gnulib-local/lib/gettext.h (LC_MESSAGES): Define fallback like in
gnulib/lib/locale.in.h.

gnulib-local/lib/gettext.h

index e6cea28682ad7370c429a57e9ccf9b0d6ee1eb22..9653c7386c93d411a86e78bc3618f5e196e8eb59 100644 (file)
@@ -178,6 +178,11 @@ dcgettext (const char *domain, const char *msgid, int category)
    The letter 'p' stands for 'particular' or 'special'.  */
 
 #include <locale.h> /* 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) \