From 87f2789f542922756ce401d590029bafc4a1663a Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 27 Apr 2024 20:58:00 +0200 Subject: Prefix string-literals given to U8() with ‘u8’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/mbstring.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mbstring.h b/include/mbstring.h index e487da5..04af4fd 100644 --- a/include/mbstring.h +++ b/include/mbstring.h @@ -11,7 +11,7 @@ #define U8(s) \ _Generic((s), \ nullptr_t: ((struct u8view){}), \ - default: ((struct u8view){.p = (s), .len = sizeof(s) - 1})) + default: ((struct u8view){.p = (u8##s), .len = sizeof(s) - 1})) #define U8_ARGS(s) ((s).p), ((s).len) #define U8_ARGSP(s) (&(s).p), (&(s).len) -- cgit v1.2.3