diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-12-16 11:54:18 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-12-16 11:54:18 -0500 |
commit | aa8344e04bfe950cc9f5e45352cd8202295e0cdf (patch) | |
tree | 7234a88dd56f8cd9406b9265693c3af9842d747f /src/bfstd.h | |
parent | 023482caa20c0d3b5ab1641f26d8384829b1e43f (diff) | |
download | bfs-aa8344e04bfe950cc9f5e45352cd8202295e0cdf.tar.xz |
bfstd: New xwcwidth() wrapper
Diffstat (limited to 'src/bfstd.h')
-rw-r--r-- | src/bfstd.h | 5 |
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> /** |