mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-24 05:44:10 +00:00
Bug 957356 - Use the correct string type for expat's XML_Char depending on the language to use; r=hsivonen
This commit is contained in:
parent
df1c99dccf
commit
468660ec5b
@ -27,10 +27,19 @@
|
||||
#define XMLIMPORT
|
||||
|
||||
#define XML_UNICODE
|
||||
typedef char16_t XML_Char;
|
||||
typedef char XML_LChar;
|
||||
/*
|
||||
* 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 XML_Char;
|
||||
#define XML_T(x) (char16_t)x
|
||||
#define XML_L(x) x
|
||||
#else
|
||||
#include <stdint.h>
|
||||
typedef uint16_t XML_Char;
|
||||
#define XML_T(x) (uint16_t)x
|
||||
#endif
|
||||
|
||||
#define XML_DTD
|
||||
#define XML_NS
|
||||
|
Loading…
x
Reference in New Issue
Block a user