Bug 958497 - Use the correct character type in th_char.h depending on the language to use; r=smontagu

This commit is contained in:
Ehsan Akhgari 2014-01-12 14:50:48 -05:00
Родитель 210d561d34
Коммит 5723e1696e
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -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