]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmlpars.cpp
recognize 646 charset as US-ASCII (this is how it is used by Solaris)
[wxWidgets.git] / src / html / htmlpars.cpp
index 09f7c0ecd96041630d469b283e8613f609ab4cfa..9efd706bea25ea4cc7502432fc690ef4515efdb7 100644 (file)
@@ -491,7 +491,7 @@ struct wxHtmlEntityInfo
     unsigned code;
 };
 
-static int LINKAGEMODE compar_entity(const void *key, const void *item)
+extern "C" int LINKAGEMODE wxHtmlEntityCompare(const void *key, const void *item)
 {
     return wxStrcmp((wxChar*)key, ((wxHtmlEntityInfo*)item)->name);
 }
@@ -801,7 +801,7 @@ wxChar wxHtmlEntitiesParser::GetEntityChar(const wxString& entity)
         info = (wxHtmlEntityInfo*) bsearch(entity.c_str(), substitutions,
                                            substitutions_cnt,
                                            sizeof(wxHtmlEntityInfo),
-                                           compar_entity);
+                                           wxHtmlEntityCompare);
         if (info)
             code = info->code;
     }