aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/drivers/unix/ttsl_drv.c
diff options
context:
space:
mode:
authorAnthony Ramine <[email protected]>2013-05-09 03:45:02 +0200
committerAnthony Ramine <[email protected]>2013-05-14 12:23:44 +0200
commita304e1ab4a622f8bf130b1a8cf904fe324c783a1 (patch)
treeeb9a071b4556e41eb8585f51ae83a2cf7b0b1213 /erts/emulator/drivers/unix/ttsl_drv.c
parent89939207898fc68a2ee0c080e603aa65fb866b25 (diff)
downloadotp-a304e1ab4a622f8bf130b1a8cf904fe324c783a1.tar.gz
otp-a304e1ab4a622f8bf130b1a8cf904fe324c783a1.tar.bz2
otp-a304e1ab4a622f8bf130b1a8cf904fe324c783a1.zip
Properly guard WIDE_TAG use with HAVE_WCWIDTH in ttsl_drv
Diffstat (limited to 'erts/emulator/drivers/unix/ttsl_drv.c')
-rw-r--r--erts/emulator/drivers/unix/ttsl_drv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/drivers/unix/ttsl_drv.c b/erts/emulator/drivers/unix/ttsl_drv.c
index d76401a790..1e436830e7 100644
--- a/erts/emulator/drivers/unix/ttsl_drv.c
+++ b/erts/emulator/drivers/unix/ttsl_drv.c
@@ -1039,8 +1039,10 @@ static int write_buf(Uint32 *s, int n)
if (octbuff != octtmp) {
driver_free(octbuff);
}
+#ifdef HAVE_WCWIDTH
} else if (*s & WIDE_TAG) {
--n; s++;
+#endif
} else {
DEBUGLOG(("Very unexpected character %d",(int) *s));
++n;