From f80d1b0293122f35a5643a50527f9c52dc68f388 Mon Sep 17 00:00:00 2001 From: PulkoMandy Date: Sun, 26 Oct 2025 10:42:19 +0100 Subject: [PATCH] kernel/util: make convertutf available to C code No reason to make it C++-only Change-Id: Ia9c1aff68876fd0d9a4bcf82d69f5e6ec6878ca0 Reviewed-on: https://review.haiku-os.org/c/haiku/+/9738 Reviewed-by: waddlesplash Tested-by: Commit checker robot --- headers/private/kernel/util/convertutf.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/headers/private/kernel/util/convertutf.h b/headers/private/kernel/util/convertutf.h index 99403153a9..e07216d20b 100644 --- a/headers/private/kernel/util/convertutf.h +++ b/headers/private/kernel/util/convertutf.h @@ -15,6 +15,11 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + + ssize_t utf16le_to_utf8(const uint16* source, size_t sourceCodeUnitCount, char* target, size_t targetLength); @@ -22,4 +27,9 @@ ssize_t utf16be_to_utf8(const uint16* source, size_t sourceCodeUnitCount, char* target, size_t targetLength); +#ifdef __cplusplus +}; +#endif + + #endif // CONVERT_UTF_H