changeset 48757:edfd05d8ef77

Do include libintl.h if HAVE_LIBINTL_H. (_): Test only HAVE_LIBINTL_H to decide what to do.
author Richard M. Stallman <rms@gnu.org>
date Mon, 09 Dec 2002 01:55:05 +0000
parents cb0b6333263b
children 0b855d91442b
files lib-src/getopt.c
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/getopt.c	Sun Dec 08 23:53:05 2002 +0000
+++ b/lib-src/getopt.c	Mon Dec 09 01:55:05 2002 +0000
@@ -75,6 +75,10 @@
 # endif
 #endif
 
+#if HAVE_LIBINTL_H
+# include <libintl.h>
+#endif /* HAVE_LIBINTL_H */
+
 #if 0
 #  ifdef _LIBC
 #    include <libintl.h>
@@ -84,12 +88,12 @@
 #  endif  /* end #ifdef _LIBC */
 #endif  /* end #if 0 */
 
-#if HAVE_LIBINTL_H || defined _LIBC
+#if HAVE_LIBINTL_H
   /* Should I include libintl.h here as in regex.c ? */
 #  define _(msgid) gettext (msgid)
-#else  /* not #if HAVE_LIBINTL_H || defined _LIBC */
+#else  /* not #if HAVE_LIBINTL_H */
 #  define _(msgid) (msgid)
-#endif  /* end #if HAVE_LIBINTL_H || defined _LIBC */
+#endif  /* end #if HAVE_LIBINTL_H */
 
 #if defined _LIBC && defined USE_IN_LIBIO
 # include <wchar.h>