summaryrefslogtreecommitdiff
path: root/lib-src/getopt.c
diff options
context:
space:
mode:
authorBen Key <bkey1@tampabay.rr.com>2002-12-07 05:22:27 +0000
committerBen Key <bkey1@tampabay.rr.com>2002-12-07 05:22:27 +0000
commit4fbd67668e93f3402e4894cd25354c27961a09de (patch)
treeea9f552285b88cb115370502eec2c458104b17ba /lib-src/getopt.c
parent730a652d2f49eb8e73c807629e4499a200e0f566 (diff)
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/getopt.c')
-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 c75627f84b..72fc012f8d 100644
--- a/lib-src/getopt.c
+++ b/lib-src/getopt.c
@@ -76,14 +76,20 @@
#endif
#if 0
-#ifdef _LIBC
-# include <libintl.h>
-#else
+# ifdef _LIBC
+# include <libintl.h>
+# else /* not #ifdef _LIBC */
/* This is for other GNU distributions with internationalized messages. */
-# include "gettext.h"
-#endif
-#endif
-#define _(msgid) gettext (msgid)
+# include "gettext.h"
+# endif /* end #ifdef _LIBC */
+#endif /* end #if 0 */
+
+#if HAVE_LIBINTL_H || defined _LIBC
+ /* Should I include libintl.h here as in regex.c ? */
+# define _(msgid) gettext (msgid)
+#else /* not #if HAVE_LIBINTL_H || defined _LIBC */
+# define _(msgid) (msgid)
+#endif /* end #if HAVE_LIBINTL_H || defined _LIBC */
#if defined _LIBC && defined USE_IN_LIBIO
# include <wchar.h>