summaryrefslogtreecommitdiff
path: root/pith/charconv
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2017-09-22 17:01:36 -0600
committerEduardo Chappa <chappa@washington.edu>2017-09-22 17:01:36 -0600
commit4399d536cf37ec3e98a872980020647f2bcb6500 (patch)
tree23e45d391d4d3a3a9b810ad0f024d6bcb0ea5f47 /pith/charconv
parent988ec3d0df0a7102a5d349525bccab84a39902b0 (diff)
downloadalpine-4399d536cf37ec3e98a872980020647f2bcb6500.tar.xz
* configure script and add check for HAVE_WCWIDTH by Stefan Haubenth.
Diffstat (limited to 'pith/charconv')
-rw-r--r--pith/charconv/utf8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pith/charconv/utf8.c b/pith/charconv/utf8.c
index bdf84ecc..7e1ae456 100644
--- a/pith/charconv/utf8.c
+++ b/pith/charconv/utf8.c
@@ -92,7 +92,7 @@ wcellwidth(UCS ucs)
return((w & U4W_ERROR) ? -1 : w);
}
}
-#ifndef _WINDOWS
+#if !defined(_WINDOWS) && HAVE_WCWIDTH
else
return(wcwidth((wchar_t) ucs));
#else
@@ -104,7 +104,7 @@ wcellwidth(UCS ucs)
int
pith_ucs4width(UCS ucs)
{
-#ifndef _WINDOWS
+#if !defined(_WINDOWS) && HAVE_WCWIDTH
return wcwidth((wchar_t) ucs);
#else
return (ucs >= 0x2100) ? 2 : 1;