aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorBen Key2002-12-07 05:22:27 +0000
committerBen Key2002-12-07 05:22:27 +0000
commit4fbd67668e93f3402e4894cd25354c27961a09de (patch)
treeea9f552285b88cb115370502eec2c458104b17ba /lib-src
parent730a652d2f49eb8e73c807629e4499a200e0f566 (diff)
downloademacs-4fbd67668e93f3402e4894cd25354c27961a09de.tar.gz
emacs-4fbd67668e93f3402e4894cd25354c27961a09de.zip
Fixed the build error in getopt.c that occured on systems lacking a gettext implementation. Thanks go to Andrew Choi [akochoi@shaw.ca] for this one.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/getopt.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/lib-src/getopt.c b/lib-src/getopt.c
index c75627f84ba..72fc012f8d9 100644
--- a/lib-src/getopt.c
+++ b/lib-src/getopt.c
@@ -76,14 +76,20 @@
76#endif 76#endif
77 77
78#if 0 78#if 0
79#ifdef _LIBC 79# ifdef _LIBC
80# include <libintl.h> 80# include <libintl.h>
81#else 81# else /* not #ifdef _LIBC */
82/* This is for other GNU distributions with internationalized messages. */ 82/* This is for other GNU distributions with internationalized messages. */
83# include "gettext.h" 83# include "gettext.h"
84#endif 84# endif /* end #ifdef _LIBC */
85#endif 85#endif /* end #if 0 */
86#define _(msgid) gettext (msgid) 86
87#if HAVE_LIBINTL_H || defined _LIBC
88 /* Should I include libintl.h here as in regex.c ? */
89# define _(msgid) gettext (msgid)
90#else /* not #if HAVE_LIBINTL_H || defined _LIBC */
91# define _(msgid) (msgid)
92#endif /* end #if HAVE_LIBINTL_H || defined _LIBC */
87 93
88#if defined _LIBC && defined USE_IN_LIBIO 94#if defined _LIBC && defined USE_IN_LIBIO
89# include <wchar.h> 95# include <wchar.h>