diff --git a/expat/xmlparse/hashtable.h b/expat/xmlparse/hashtable.h index d10e591c7ff8..63478a0812c7 100644 --- a/expat/xmlparse/hashtable.h +++ b/expat/xmlparse/hashtable.h @@ -22,8 +22,12 @@ Contributor(s): #include #ifdef XML_UNICODE +#ifdef XML_UNICODE_WCHAR_T typedef const wchar_t *KEY; #else +typedef const unsigned short *KEY; +#endif +#else typedef const char *KEY; #endif diff --git a/parser/expat/lib/hashtable.h b/parser/expat/lib/hashtable.h index d10e591c7ff8..63478a0812c7 100644 --- a/parser/expat/lib/hashtable.h +++ b/parser/expat/lib/hashtable.h @@ -22,8 +22,12 @@ Contributor(s): #include #ifdef XML_UNICODE +#ifdef XML_UNICODE_WCHAR_T typedef const wchar_t *KEY; #else +typedef const unsigned short *KEY; +#endif +#else typedef const char *KEY; #endif