Mercurial > emacs
comparison lib-src/getopt.c @ 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 | c912a632b4a2 |
children | 695cf19ef79e d7ddb3e565de |
comparison
equal
deleted
inserted
replaced
48756:cb0b6333263b | 48757:edfd05d8ef77 |
---|---|
73 # if HAVE_STRING_H - 0 | 73 # if HAVE_STRING_H - 0 |
74 # include <string.h> | 74 # include <string.h> |
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> |
81 # else /* not #ifdef _LIBC */ | 85 # else /* not #ifdef _LIBC */ |
82 /* This is for other GNU distributions with internationalized messages. */ | 86 /* This is for other GNU distributions with internationalized messages. */ |
83 # include "gettext.h" | 87 # include "gettext.h" |
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> |
96 #endif | 100 #endif |
97 | 101 |