diff options
Diffstat (limited to 'argp')
-rw-r--r-- | argp/argp-help.c | 4 | ||||
-rw-r--r-- | argp/argp-parse.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/argp/argp-help.c b/argp/argp-help.c index d378faa4a5..5810e70329 100644 --- a/argp/argp-help.c +++ b/argp/argp-help.c @@ -57,6 +57,10 @@ char *alloca (); /* This is for other GNU distributions with internationalized messages. */ # if defined HAVE_LIBINTL_H || defined _LIBC # include <libintl.h> +# ifdef _LIBC +# undef dgettext +# define dgettext(domain, msgid) __dcgettext (domain, msgid, LC_MESSAGES) +# endif # else # define dgettext(domain, msgid) (msgid) # endif diff --git a/argp/argp-parse.c b/argp/argp-parse.c index 71b3fb298b..e16b2f78e5 100644 --- a/argp/argp-parse.c +++ b/argp/argp-parse.c @@ -33,6 +33,10 @@ When compiling libc, the _ macro is predefined. */ # if defined HAVE_LIBINTL_H || defined _LIBC # include <libintl.h> +# ifdef _LIBC +# undef dgettext +# define dgettext(domain, msgid) __dcgettext (domain, msgid, LC_MESSAGES) +# endif # else # define dgettext(domain, msgid) (msgid) # define gettext(msgid) (msgid) |