mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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
c94e429899
commit
b7a96c6cbb
@ -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…
Reference in New Issue
Block a user