summaryrefslogtreecommitdiff
path: root/lib/wctype.in.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-07-31 22:39:32 +0200
committerBruno Haible <bruno@clisp.org>2011-07-31 22:39:32 +0200
commit060a5ab2b25c067185f3c3c077287c65723ea985 (patch)
treea0825f6c424584131940ea6b586168b72ed3ac91 /lib/wctype.in.h
parent94122ae4818e7808c99303a0d2094ee9c6a2b843 (diff)
downloadgnulib-060a5ab2b25c067185f3c3c077287c65723ea985.tar.gz
wctype-h: Add support for Minix.
* m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set REPLACE_TOWLOWER. * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER. * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not REPLACE_ISWCNTRL.
Diffstat (limited to 'lib/wctype.in.h')
-rw-r--r--lib/wctype.in.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/wctype.in.h b/lib/wctype.in.h
index 5e6798a449..cb50c5b0ef 100644
--- a/lib/wctype.in.h
+++ b/lib/wctype.in.h
@@ -128,6 +128,10 @@
# define iswspace rpl_iswspace
# define iswupper rpl_iswupper
# define iswxdigit rpl_iswxdigit
+# endif
+# endif
+# if @REPLACE_TOWLOWER@
+# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
# define towlower rpl_towlower
# define towupper rpl_towupper
# endif
@@ -271,7 +275,7 @@ iswxdigit
}
static inline wint_t
-# if @REPLACE_ISWCNTRL@
+# if @REPLACE_TOWLOWER@
rpl_towlower
# else
towlower
@@ -282,7 +286,7 @@ towlower
}
static inline wint_t
-# if @REPLACE_ISWCNTRL@
+# if @REPLACE_TOWLOWER@
rpl_towupper
# else
towupper
@@ -429,7 +433,7 @@ _GL_WARN_ON_USE (iswctype, "iswctype is unportable - "
# endif
#endif
-#if @REPLACE_ISWCNTRL@ || defined __MINGW32__
+#if @REPLACE_TOWLOWER@ || defined __MINGW32__
_GL_CXXALIAS_RPL (towlower, wint_t, (wint_t wc));
_GL_CXXALIAS_RPL (towupper, wint_t, (wint_t wc));
#else