mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 04:40:59 +01:00
22123: probe for wcswidth() and assume 1 if not found
This commit is contained in:
parent
b71a632d2f
commit
d8a851a9a8
3 changed files with 10 additions and 1 deletions
|
|
@ -703,6 +703,10 @@ extern short ospeed;
|
|||
*/
|
||||
# include <wchar.h>
|
||||
# include <wctype.h>
|
||||
#ifndef HAVE_WCSWIDTH
|
||||
/* wcswidth is missing on OpenBSD: assume single-width characters */
|
||||
#define wcswidth(x, y) (1)
|
||||
#endif
|
||||
#endif
|
||||
#ifdef HAVE_LANGINFO_H
|
||||
# include <langinfo.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue