about summary refs log tree commit diff
path: root/Src/compat.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2012-08-07 18:29:02 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2012-08-07 18:29:02 +0000
commit85a698b8ec0c68ce6bf130dbe909ca5ff129c6d9 (patch)
treeea496104bc5609215dd58ed57f6ca8157b648121 /Src/compat.c
parent494444b90a09b82b84d9964b3989d2de0d48761b (diff)
downloadzsh-85a698b8ec0c68ce6bf130dbe909ca5ff129c6d9.tar.gz
zsh-85a698b8ec0c68ce6bf130dbe909ca5ff129c6d9.tar.xz
zsh-85a698b8ec0c68ce6bf130dbe909ca5ff129c6d9.zip
YAMAMOTO Takashi: 30599: don't use replacement wcwidth if not ISO-10646
Diffstat (limited to 'Src/compat.c')
-rw-r--r--Src/compat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/compat.c b/Src/compat.c
index e36de3219..6d08dab94 100644
--- a/Src/compat.c
+++ b/Src/compat.c
@@ -630,7 +630,7 @@ strtoul(nptr, endptr, base)
 #endif /* HAVE_STRTOUL */
 
 /**/
-#ifdef BROKEN_WCWIDTH
+#if defined(BROKEN_WCWIDTH) && defined(__STDC_ISO_10646__)
 
 /*
  * 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 */
+#endif /* BROKEN_WCWIDTH && __STDC_ISO_10646__ */