summaryrefslogtreecommitdiffstats
path: root/src/bfstd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bfstd.h')
-rw-r--r--src/bfstd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bfstd.h b/src/bfstd.h
index 58e504c..0fcb892 100644
--- a/src/bfstd.h
+++ b/src/bfstd.h
@@ -390,6 +390,11 @@ wint_t xmbrtowc(const char *str, size_t *i, size_t len, mbstate_t *mb);
*/
size_t xstrwidth(const char *str);
+/**
+ * wcwidth() wrapper that works around LLVM bug #65532.
+ */
+#define xwcwidth BFS_INTERCEPT(wcwidth)
+
#include <wctype.h>
/**