From 71f0b19476adb170c24d6a8de4ab3133701b1aeb Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Mon, 12 Oct 2026 20:39:36 +0300 Subject: Fix macOS builds on Apple Silicon and Intel --- include/term/unicode/unicode_data.inc | 2 +- include/term/unicode/width.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include/term') diff --git a/include/term/unicode/unicode_data.inc b/include/term/unicode/unicode_data.inc index 8c3d394..8053b01 100644 --- a/include/term/unicode/unicode_data.inc +++ b/include/term/unicode/unicode_data.inc @@ -105,7 +105,7 @@ static const struct unicode_range nonprintable[] = { {0x0,0x1F},{0x7F,0x9F},{0xD800,0xDFFF}, }; -static const struct unicode_range wide[] = { +static const struct unicode_range unicode_wide[] = { {0x1100,0x115F},{0x231A,0x231B},{0x2329,0x232A},{0x23E9,0x23EC}, {0x23F0,0x23F0},{0x23F3,0x23F3},{0x25FD,0x25FE},{0x2614,0x2615}, {0x2630,0x2637},{0x2648,0x2653},{0x267F,0x267F},{0x268A,0x268F}, diff --git a/include/term/unicode/width.h b/include/term/unicode/width.h index fc639c8..388ae6c 100644 --- a/include/term/unicode/width.h +++ b/include/term/unicode/width.h @@ -32,7 +32,7 @@ static inline int unicode_width(uint32_t cp) return -1; if (IN_TABLE(zero_width, cp)) return 0; - return IN_TABLE(wide, cp) ? 2 : 1; + return IN_TABLE(unicode_wide, cp) ? 2 : 1; } static inline bool unicode_extended_pictographic(uint32_t cp) -- cgit v1.2.3