From eca79530b77b2003fd939e4f5bdf576f1c8ed0fa Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 9 Dec 2002 01:55:05 +0000 Subject: [PATCH] Do include libintl.h if HAVE_LIBINTL_H. (_): Test only HAVE_LIBINTL_H to decide what to do. --- lib-src/getopt.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib-src/getopt.c b/lib-src/getopt.c index 72fc012f8d9..c17aecaefd2 100644 --- a/lib-src/getopt.c +++ b/lib-src/getopt.c @@ -75,6 +75,10 @@ # endif #endif +#if HAVE_LIBINTL_H +# include +#endif /* HAVE_LIBINTL_H */ + #if 0 # ifdef _LIBC # include @@ -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 -- 2.39.5