]> git.eshelyaron.com Git - emacs.git/commitdiff
Do include libintl.h if HAVE_LIBINTL_H.
authorRichard M. Stallman <rms@gnu.org>
Mon, 9 Dec 2002 01:55:05 +0000 (01:55 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 9 Dec 2002 01:55:05 +0000 (01:55 +0000)
(_): Test only HAVE_LIBINTL_H to decide what to do.

lib-src/getopt.c

index 72fc012f8d9af0d633bf981d7243d3dbe2e53d06..c17aecaefd28d00df78e975c1af10b13f70666da 100644 (file)
 # endif
 #endif
 
+#if HAVE_LIBINTL_H
+# include <libintl.h>
+#endif /* HAVE_LIBINTL_H */
+
 #if 0
 #  ifdef _LIBC
 #    include <libintl.h>
 #  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>