diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2012-08-23 19:19:26 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2012-08-23 19:19:26 +0000 |
commit | 13b8a25456f038e0dbf7daf187cb0e5b9b9558c9 (patch) | |
tree | fb430d471ec8aa5804ba2b751366cff6c9529711 /Src/compat.c | |
parent | 32438824c0f92d64956c35a543ead4687f029ddb (diff) | |
download | zsh-13b8a25456f038e0dbf7daf187cb0e5b9b9558c9.tar.gz zsh-13b8a25456f038e0dbf7daf187cb0e5b9b9558c9.tar.xz zsh-13b8a25456f038e0dbf7daf187cb0e5b9b9558c9.zip |
Jun T.: 30640: MacOS doesn't define __STDC_ISO_10646__ but we need
the replacement wcwidth function anyway
Diffstat (limited to 'Src/compat.c')
-rw-r--r-- | Src/compat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/compat.c b/Src/compat.c index 6d08dab94..cc4e876da 100644 --- a/Src/compat.c +++ b/Src/compat.c @@ -630,7 +630,7 @@ strtoul(nptr, endptr, base) #endif /* HAVE_STRTOUL */ /**/ -#if defined(BROKEN_WCWIDTH) && defined(__STDC_ISO_10646__) +#if defined(BROKEN_WCWIDTH) && (defined(__STDC_ISO_10646__) || defined(__APPLE__)) /* * This is an implementation of wcwidth() and wcswidth() (defined in @@ -949,5 +949,5 @@ int mk_wcswidth_cjk(const wchar_t *pwcs, size_t n) #endif /* 0 */ /**/ -#endif /* BROKEN_WCWIDTH && __STDC_ISO_10646__ */ +#endif /* BROKEN_WCWIDTH && (__STDC_ISO_10646__ || __APPLE__) */ |