1
0
Fork 0
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:
Peter Stephenson 2006-01-06 11:41:47 +00:00
parent b71a632d2f
commit d8a851a9a8
3 changed files with 10 additions and 1 deletions

View file

@ -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>