зеркало из https://github.com/mozilla/gecko-dev.git
Bug 958497 - Use the correct character type in th_char.h depending on the language to use; r=smontagu
This commit is contained in:
Родитель
210d561d34
Коммит
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче