summaryrefslogtreecommitdiff
path: root/tests/c32tob.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/c32tob.c')
-rw-r--r--tests/c32tob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/c32tob.c b/tests/c32tob.c
index 901c9249..eb817cc0 100644
--- a/tests/c32tob.c
+++ b/tests/c32tob.c
@@ -36,7 +36,7 @@ _GL_EXTERN_INLINE
int
c32tob (wint_t wc)
{
-#if HAVE_WORKING_MBRTOC32 && !_GL_WCHAR_T_IS_UCS4
+#if HAVE_WORKING_MBRTOC32 && HAVE_WORKING_C32RTOMB && !_GL_WCHAR_T_IS_UCS4
/* The char32_t encoding of a multibyte character may be different than its
wchar_t encoding. */
if (wc != WEOF)