diff options
Diffstat (limited to 'pith/charconv/utf8.c')
-rw-r--r-- | pith/charconv/utf8.c | 4 |
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; |