diff --git a/src/html/htmlpars.cpp b/src/html/htmlpars.cpp
index 6a69f9e0b9..3153ef819d 100644
--- a/src/html/htmlpars.cpp
+++ b/src/html/htmlpars.cpp
@@ -270,7 +270,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);
}