summaryrefslogtreecommitdiff
path: root/src/unicode.hh
diff options
context:
space:
mode:
authorChris Webb <chris@arachsys.com>2024-08-23 09:18:52 +0100
committerMaxime Coste <mawww@kakoune.org>2024-08-24 14:36:09 +1000
commit193d4ba0234d7ab8e8afc2e6bfcbaf7d3d228491 (patch)
tree9be5d36efb8031e1d27600fb60d490431337f885 /src/unicode.hh
parent29d0596c715d5f74e2fc8cef6d60d7256c8b0307 (diff)
Add back <cwchar> for wcwidth in src/unicode.hh
On a musl system with clang 18.1.8 linking against libc++, 64ed046e breaks the build with src/unicode.hh:105:24: error: use of undeclared identifier 'wcwidth' 105 | const auto width = wcwidth((wchar_t)c); though this doesn't happen on the same system with gcc 14.2.0 linking against libstdc++. Include <cwchar> again so wcwidth() is properly defined.
Diffstat (limited to 'src/unicode.hh')
-rw-r--r--src/unicode.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unicode.hh b/src/unicode.hh
index d655d155..5ce63f4b 100644
--- a/src/unicode.hh
+++ b/src/unicode.hh
@@ -2,6 +2,7 @@
#define unicode_hh_INCLUDED
#include <cwctype>
+#include <cwchar>
#include "array_view.hh"
#include "units.hh"