about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-10-04 22:45:25 +0000
committerUlrich Drepper <drepper@redhat.com>2000-10-04 22:45:25 +0000
commit883ba31595b0b4660756c80befc0b5fe52f42a6d (patch)
tree35bcd658caf64557770c23b1950bbb41e98a482c
parentd5fd1f3fd88443b9f380fb576a6e7bf039fdf6b6 (diff)
downloadglibc-883ba31595b0b4660756c80befc0b5fe52f42a6d.tar.gz
glibc-883ba31595b0b4660756c80befc0b5fe52f42a6d.tar.xz
glibc-883ba31595b0b4660756c80befc0b5fe52f42a6d.zip
Update.
2000-10-04  Ulrich Drepper  <drepper@redhat.com>

	* argp/argp-help.c: Make sure we get the correct gettext and
	dgettext definitions.
	* argp/argp-parse.c: Likewise.
-rw-r--r--ChangeLog6
-rw-r--r--argp/argp-help.c2
-rw-r--r--argp/argp-parse.c14
3 files changed, 15 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 24811cef48..2b8890f6ce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2000-10-04  Ulrich Drepper  <drepper@redhat.com>
+
+	* argp/argp-help.c: Make sure we get the correct gettext and
+	dgettext definitions.
+	* argp/argp-parse.c: Likewise.
+
 2000-10-03  Ulrich Drepper  <drepper@redhat.com>
 
 	* locale/programs/linereader.c (get_string): Also clear wide
diff --git a/argp/argp-help.c b/argp/argp-help.c
index 394a4add2f..d378faa4a5 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 <libintl.h>
 # else
 #  define dgettext(domain, msgid) (msgid)
diff --git a/argp/argp-parse.c b/argp/argp-parse.c
index 0ff8a5bc23..e54497cf5e 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 <libintl.h>
-#else
-# define dgettext(domain, msgid) (msgid)
-# define gettext(msgid) (msgid)
+# if defined HAVE_LIBINTL_H || defined _LIBC
+#  include <libintl.h>
+# 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