From b20392f14f188277797bfc7fed04244ac2ad356c Mon Sep 17 00:00:00 2001 From: "nisheeth%netscape.com" Date: Sat, 24 Apr 1999 08:33:34 +0000 Subject: [PATCH] Fix for bug 5447. Check for #define XML_UNICODE_WCHAR_T before using the data type wchar_t. --- expat/xmlparse/hashtable.h | 4 ++++ parser/expat/lib/hashtable.h | 4 ++++ 2 files changed, 8 insertions(+) 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