1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-04-28 06:33:36 +00:00

gettext-h: don’t depend on locale-h

This is useful for apps like gzip.h that stay in the C locale
and don’t need all the the locale-h machinery.
* lib/gettext.h: Include <locale.h> only if !ENABLE_NLS && __sun.
(pgettext, dpgettext, npgettext, dnpgettext, pgettext_expr)
(npgettext_expr): Use _GL_LC_MESSAGES, not LC_MESSAGES.
* m4/gettext_h.m4 (gl_GETTEXT_H): Define _GL_LC_MESSAGES.
* modules/gettext-h (Depends-on): Remove locale-h.
This commit is contained in:
Paul Eggert
2026-03-31 16:38:47 -07:00
parent 3df455c4fc
commit 91150bc6e2
4 changed files with 36 additions and 14 deletions

View File

@@ -6,7 +6,6 @@ lib/gettext.h
m4/gettext_h.m4
Depends-on:
locale-h
vararrays
configure.ac: