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 <[email protected]> Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
8ded2fd4bc
commit
f80d1b0293
@@ -15,6 +15,11 @@
|
||||
#include <SupportDefs.h>
|
||||
|
||||
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user