Mercurial > emacs
comparison lib-src/getopt.c @ 48699:c912a632b4a2
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.
author | Ben Key <bkey1@tampabay.rr.com> |
---|---|
date | Sat, 07 Dec 2002 05:22:27 +0000 |
parents | 1bcc16abed79 |
children | edfd05d8ef77 |
comparison
equal
deleted
inserted
replaced
48698:7b32cc7ff520 | 48699:c912a632b4a2 |
---|---|
74 # include <string.h> | 74 # include <string.h> |
75 # endif | 75 # endif |
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> |
90 #endif | 96 #endif |
91 | 97 |