summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2008-12-21 01:22:07 +0100
committerBruno Haible <bruno@clisp.org>2008-12-21 01:22:07 +0100
commitb1876e6e277008edfa4d9e66b19ba2bb939c6b00 (patch)
tree94606c29eff3aeddada047953d4d3260aeb8bab2 /lib
parent99da6dddc223fe2010686e459dc7b09811127b77 (diff)
downloadgnulib-b1876e6e277008edfa4d9e66b19ba2bb939c6b00.tar.gz
Work around wctob bug on Solaris 9.
Diffstat (limited to 'lib')
-rw-r--r--lib/wchar.in.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/wchar.in.h b/lib/wchar.in.h
index 2a8f839efd..e4647331e3 100644
--- a/lib/wchar.in.h
+++ b/lib/wchar.in.h
@@ -97,7 +97,11 @@ extern wint_t btowc (int c);
/* Convert a wide character to a single-byte character. */
#if @GNULIB_WCTOB@
-# if !defined wctob && !@HAVE_DECL_WCTOB@
+# if @REPLACE_WCTOB@
+# undef wctob
+# define wctob rpl_wctob
+# endif
+# if (!defined wctob && !@HAVE_DECL_WCTOB@) || @REPLACE_WCTOB@
/* wctob is provided by gnulib, or wctob exists but is not declared. */
extern int wctob (wint_t wc);
# endif