]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmlpars.cpp
merged MapBitmap() from 2.2 branch
[wxWidgets.git] / src / html / htmlpars.cpp
index 6a69f9e0b928e6a8568f0d31a1df98f571bd9717..612f74bbfe5a067f6c15e09558a9de5716bdf8b6 100644 (file)
@@ -219,7 +219,9 @@ wxHtmlEntitiesParser::wxHtmlEntitiesParser()
 
 wxHtmlEntitiesParser::~wxHtmlEntitiesParser()
 {
+#if wxUSE_WCHAR_T && !wxUSE_UNICODE
     delete m_conv;
+#endif
 }
 
 void wxHtmlEntitiesParser::SetEncoding(wxFontEncoding encoding)
@@ -270,7 +272,7 @@ struct wxHtmlEntityInfo
     unsigned code;
 };
 
-static int compar_entity(const void *key, const void *item)
+static int LINKAGEMODE compar_entity(const void *key, const void *item)
 {
     return wxStrcmp((wxChar*)key, ((wxHtmlEntityInfo*)item)->name);
 }