mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 20:49:27 +00:00
Bug 958497 - Use the correct character type in th_char.h depending on the language to use; r=smontagu
This commit is contained in:
parent
210d561d34
commit
5723e1696e
@ -16,7 +16,15 @@ purpose. It is provided "as is" without express or implied warranty.
|
||||
typedef unsigned char tis_char;
|
||||
|
||||
#ifdef TH_UNICODE
|
||||
/*
|
||||
* The char16_t type is only usable in C++ code, so we need this ugly hack to
|
||||
* select a binary compatible C type for the expat C code to use.
|
||||
*/
|
||||
#ifdef __cplusplus
|
||||
typedef char16_t th_char;
|
||||
#else
|
||||
typedef uint16_t th_char;
|
||||
#endif
|
||||
#define TH_THAIBEGIN_ 0x0e00
|
||||
#define th_isthai(c) (0x0e00 <= (c) && (c) <= 0x0e5f)
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user