about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-10-16 16:16:29 +0000
committerUlrich Drepper <drepper@redhat.com>2000-10-16 16:16:29 +0000
commit457429b40448703bbc251698f71ed025ddd31ff5 (patch)
tree9d12fb25d04a95f7a8aeac952f4bd6ee000bdfbb
parentc384499721592e8fe1228b2ce523873bd3808f97 (diff)
downloadglibc-457429b40448703bbc251698f71ed025ddd31ff5.tar.gz
glibc-457429b40448703bbc251698f71ed025ddd31ff5.tar.xz
glibc-457429b40448703bbc251698f71ed025ddd31ff5.zip
Always include <libintl.h> for glibc.
-rw-r--r--malloc/obstack.c4
-rw-r--r--posix/getopt.c5
2 files changed, 4 insertions, 5 deletions
diff --git a/malloc/obstack.c b/malloc/obstack.c
index 17c6313431..38fc02faed 100644
--- a/malloc/obstack.c
+++ b/malloc/obstack.c
@@ -1,5 +1,5 @@
 /* obstack.c - subroutines used implicitly by object stack macros
-   Copyright (C) 1988-1994,96,97,98,99 Free Software Foundation, Inc.
+   Copyright (C) 1988-1994,96,97,98,99,2000 Free Software Foundation, Inc.
 
    This file is part of the GNU C Library.  Its master source is NOT part of
    the C library, however.  The master source lives in /gd/gnu/lib.
@@ -451,7 +451,7 @@ _obstack_memory_used (h)
 
 /* Define the error handler.  */
 #ifndef _
-# ifdef HAVE_LIBINTL_H
+# if defined HAVE_LIBINTL_H || defined _LIBC
 #  include <libintl.h>
 #  ifndef _
 #   define _(Str) gettext (Str)
diff --git a/posix/getopt.c b/posix/getopt.c
index a6d2d042c7..c981553c57 100644
--- a/posix/getopt.c
+++ b/posix/getopt.c
@@ -77,9 +77,8 @@
 #endif
 
 #ifndef _
-/* This is for other GNU distributions with internationalized messages.
-   When compiling libc, the _ macro is predefined.  */
-# ifdef HAVE_LIBINTL_H
+/* This is for other GNU distributions with internationalized messages.  */
+# if defined HAVE_LIBINTL_H || defined _LIBC
 #  include <libintl.h>
 #  define _(msgid)	gettext (msgid)
 # else