diff options
| author | Joshua Rubin <joshua@rubixconsulting.com> | 2016-11-29 00:42:28 -0700 |
|---|---|---|
| committer | Peter Stephenson <pws@zsh.org> | 2016-11-29 17:19:53 +0000 |
| commit | 596ba302e6f23089e58ff05d75fedfca8e79a7d2 (patch) | |
| tree | bcb6eed9607546237569565b46e68fc4bff01cce /Src/zsh.h | |
| parent | 40035: Cosmetic fixes for comments and documentation. (diff) | |
| download | zsh-596ba302e6f23089e58ff05d75fedfca8e79a7d2.tar zsh-596ba302e6f23089e58ff05d75fedfca8e79a7d2.tar.gz zsh-596ba302e6f23089e58ff05d75fedfca8e79a7d2.tar.bz2 zsh-596ba302e6f23089e58ff05d75fedfca8e79a7d2.tar.lz zsh-596ba302e6f23089e58ff05d75fedfca8e79a7d2.tar.xz zsh-596ba302e6f23089e58ff05d75fedfca8e79a7d2.tar.zst zsh-596ba302e6f23089e58ff05d75fedfca8e79a7d2.zip | |
40037: Unicode 9 character width support.
Enable with --enable-unicode9.
Diffstat (limited to 'Src/zsh.h')
| -rw-r--r-- | Src/zsh.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3131,7 +3131,9 @@ typedef wint_t convchar_t; * much what the definition tells us. However, we happen to know this * works on MacOS which doesn't define that. */ -#if defined(BROKEN_WCWIDTH) && (defined(__STDC_ISO_10646__) || defined(__APPLE__)) +#ifdef ENABLE_UNICODE9 +#define WCWIDTH(wc) mk_wcwidth(wc) +#elif defined(BROKEN_WCWIDTH) && (defined(__STDC_ISO_10646__) || defined(__APPLE__)) #define WCWIDTH(wc) mk_wcwidth(wc) #else #define WCWIDTH(wc) wcwidth(wc) |
