+2026-05-09 Paul Eggert <eggert@cs.ucla.edu>
+
+ gettext-h: fix recently-introduced category typos
+ * lib/gettext.h (dcgettext, dcngettext): The category arg has type
+ int, not const char *. Problem found on Solaris 10 with Oracle
+ Solaris Studio 12.6.
+
2026-05-08 Paul Eggert <eggert@cs.ucla.edu>
u64: go back to casts for u64init
((void) (const char *) {(Domainname)}, gettext (Msgid))
# undef dcgettext
# define dcgettext(Domainname, Msgid, Category) \
- ((void) (const char *) {(Category)}, dgettext (Domainname, Msgid))
+ ((void) (int) {(Category)}, dgettext (Domainname, Msgid))
# endif
# undef ngettext
# define ngettext(Msgid1, Msgid2, N) \
((void) (const char *) {(Domainname)}, ngettext (Msgid1, Msgid2, N))
# undef dcngettext
# define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \
- ((void) (const char *) {(Category)}, \
- dngettext (Domainname, Msgid1, Msgid2, N))
+ ((void) (int) {(Category)}, dngettext (Domainname, Msgid1, Msgid2, N))
# undef textdomain
# define textdomain(Domainname) ((const char *) {(Domainname)})
# undef bindtextdomain