diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-04-27 20:58:00 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-04-27 20:58:00 +0200 |
commit | 87f2789f542922756ce401d590029bafc4a1663a (patch) | |
tree | 01f079779401e2127fe0e61ef469ff6de64e290b | |
parent | a66c9199efe1b215c352e0cf56bfe7a0d1f01e23 (diff) |
Prefix string-literals given to U8() with ‘u8’
-rw-r--r-- | include/mbstring.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) |