From 883ba31595b0b4660756c80befc0b5fe52f42a6d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 4 Oct 2000 22:45:25 +0000 Subject: Update. 2000-10-04 Ulrich Drepper * argp/argp-help.c: Make sure we get the correct gettext and dgettext definitions. * argp/argp-parse.c: Likewise. --- argp/argp-help.c | 2 +- argp/argp-parse.c | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) (limited to 'argp') diff --git a/argp/argp-help.c b/argp/argp-help.c index 394a4ad..d378faa 100644 --- a/argp/argp-help.c +++ b/argp/argp-help.c @@ -55,7 +55,7 @@ char *alloca (); #ifndef _ /* This is for other GNU distributions with internationalized messages. */ -# ifdef HAVE_LIBINTL_H +# if defined HAVE_LIBINTL_H || defined _LIBC # include # else # define dgettext(domain, msgid) (msgid) diff --git a/argp/argp-parse.c b/argp/argp-parse.c index 0ff8a5b..e54497c 100644 --- a/argp/argp-parse.c +++ b/argp/argp-parse.c @@ -31,13 +31,15 @@ #ifndef _ /* This is for other GNU distributions with internationalized messages. When compiling libc, the _ macro is predefined. */ -#ifdef HAVE_LIBINTL_H -# include -#else -# define dgettext(domain, msgid) (msgid) -# define gettext(msgid) (msgid) +# if defined HAVE_LIBINTL_H || defined _LIBC +# include +# else +# define dgettext(domain, msgid) (msgid) +# define gettext(msgid) (msgid) +# endif #endif -#define N_(msgid) (msgid) +#ifndef N_ +# define N_(msgid) (msgid) #endif #if _LIBC - 0 -- cgit v1.1