diff options
author | Richard M. Stallman <rms@gnu.org> | 2002-12-09 01:55:05 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2002-12-09 01:55:05 +0000 |
commit | eca79530b77b2003fd939e4f5bdf576f1c8ed0fa (patch) | |
tree | 75d3faeaca7d87f2d64376d39590bd018cfe624d /lib-src | |
parent | df4d1023fc6b010a81636ed09f348fe2612b7a26 (diff) | |
download | emacs-eca79530b77b2003fd939e4f5bdf576f1c8ed0fa.tar.gz |
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.c | 10 |
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 @@ # 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> |