summaryrefslogtreecommitdiff
path: root/pith
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
parent988ec3d0df0a7102a5d349525bccab84a39902b0 (diff)
downloadalpine-4399d536cf37ec3e98a872980020647f2bcb6500.tar.xz
* configure script and add check for HAVE_WCWIDTH by Stefan Haubenth.
Diffstat (limited to 'pith')
-rw-r--r--pith/charconv/utf8.c4
-rw-r--r--pith/pine.hlp2
2 files changed, 3 insertions, 3 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;
diff --git a/pith/pine.hlp b/pith/pine.hlp
index 273571d0..52b7dffa 100644
--- a/pith/pine.hlp
+++ b/pith/pine.hlp
@@ -140,7 +140,7 @@ with help text for the config screen and the composer that didn't have any
reasonable place to be called from.
Dummy change to get revision in pine.hlp
============= h_revision =================
-Alpine Commit 216 2017-09-19 21:56:28
+Alpine Commit 217 2017-09-22 17:01:27
============= h_news =================
<HTML>
<HEAD>