aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman2002-12-09 01:55:05 +0000
committerRichard M. Stallman2002-12-09 01:55:05 +0000
commiteca79530b77b2003fd939e4f5bdf576f1c8ed0fa (patch)
tree75d3faeaca7d87f2d64376d39590bd018cfe624d /lib-src
parentdf4d1023fc6b010a81636ed09f348fe2612b7a26 (diff)
downloademacs-eca79530b77b2003fd939e4f5bdf576f1c8ed0fa.tar.gz
emacs-eca79530b77b2003fd939e4f5bdf576f1c8ed0fa.zip
Do include libintl.h if HAVE_LIBINTL_H.
(_): Test only HAVE_LIBINTL_H to decide what to do.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/getopt.c10
1 files 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 @@
75# endif 75# endif
76#endif 76#endif
77 77
78#if HAVE_LIBINTL_H
79# include <libintl.h>
80#endif /* HAVE_LIBINTL_H */
81
78#if 0 82#if 0
79# ifdef _LIBC 83# ifdef _LIBC
80# include <libintl.h> 84# include <libintl.h>
@@ -84,12 +88,12 @@
84# endif /* end #ifdef _LIBC */ 88# endif /* end #ifdef _LIBC */
85#endif /* end #if 0 */ 89#endif /* end #if 0 */
86 90
87#if HAVE_LIBINTL_H || defined _LIBC 91#if HAVE_LIBINTL_H
88 /* Should I include libintl.h here as in regex.c ? */ 92 /* Should I include libintl.h here as in regex.c ? */
89# define _(msgid) gettext (msgid) 93# define _(msgid) gettext (msgid)
90#else /* not #if HAVE_LIBINTL_H || defined _LIBC */ 94#else /* not #if HAVE_LIBINTL_H */
91# define _(msgid) (msgid) 95# define _(msgid) (msgid)
92#endif /* end #if HAVE_LIBINTL_H || defined _LIBC */ 96#endif /* end #if HAVE_LIBINTL_H */
93 97
94#if defined _LIBC && defined USE_IN_LIBIO 98#if defined _LIBC && defined USE_IN_LIBIO
95# include <wchar.h> 99# include <wchar.h>