about summary refs log tree commit diff
path: root/argp
diff options
context:
space:
mode:
Diffstat (limited to 'argp')
-rw-r--r--argp/argp-help.c2
-rw-r--r--argp/argp-parse.c14
2 files changed, 9 insertions, 7 deletions
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