summaryrefslogtreecommitdiff
path: root/lib/unicodeio.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2002-11-05 21:45:29 +0000
committerBruno Haible <bruno@clisp.org>2002-11-05 21:45:29 +0000
commitf9fa25dca3c78a2298e466e1b33caca0ee7e458b (patch)
tree31624fcde2d630753c2403c77b38e9c6e7f83929 /lib/unicodeio.c
parent030b6f27fcc8fd598b3ba2e115376b697fc09c94 (diff)
downloadgnulib-f9fa25dca3c78a2298e466e1b33caca0ee7e458b.tar.gz
Include gettext.h instead of <libintl.h> with #ifdefs.
Diffstat (limited to 'lib/unicodeio.c')
-rw-r--r--lib/unicodeio.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/unicodeio.c b/lib/unicodeio.c
index 049b9afd0a..2e7ffc9d0e 100644
--- a/lib/unicodeio.c
+++ b/lib/unicodeio.c
@@ -20,7 +20,7 @@
/* Written by Bruno Haible <haible@clisp.cons.org>. */
/* Note: This file requires the locale_charset() function. See in
- libiconv-1.7/libcharset/INTEGRATE for how to obtain it. */
+ libiconv-1.8/libcharset/INTEGRATE for how to obtain it. */
#ifdef HAVE_CONFIG_H
# include <config.h>
@@ -48,13 +48,9 @@ extern int errno;
#include <error.h>
-#if ENABLE_NLS
-# include <libintl.h>
-#else
-# define gettext(Text) Text
-#endif
-#define _(Text) gettext (Text)
-#define N_(Text) Text
+#include "gettext.h"
+#define _(msgid) gettext (msgid)
+#define N_(msgid) msgid
/* Specification. */
#include "unicodeio.h"