mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-13 04:09:25 +00:00
Make the API header use C++ native char16_t for km_kbp_cp when in C++
This commit is contained in:
parent
4677d3d8b1
commit
2ca2fceb79
1 changed files with 5 additions and 1 deletions
|
|
@ -67,12 +67,16 @@ extern "C"
|
|||
#endif
|
||||
// Basic types
|
||||
//
|
||||
#if defined(__cplusplus)
|
||||
typedef char16_t km_kbp_cp;
|
||||
typedef char32_t km_kbp_usv;
|
||||
#else
|
||||
typedef uint16_t km_kbp_cp; // code point
|
||||
typedef uint32_t km_kbp_usv; // Unicode Scalar Value
|
||||
#endif
|
||||
typedef uint16_t km_kbp_virtual_key; // A virtual key code.
|
||||
typedef uint32_t km_kbp_status; // Status return code.
|
||||
|
||||
|
||||
// Opaque object types.
|
||||
//
|
||||
typedef struct km_kbp_context km_kbp_context;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue