diff --git a/include/wx/html/htmlpars.h b/include/wx/html/htmlpars.h
index e28657879f..25d9c5991e 100644
--- a/include/wx/html/htmlpars.h
+++ b/include/wx/html/htmlpars.h
@@ -20,6 +20,8 @@
#include "wx/html/htmltag.h"
#include "wx/filesys.h"
+#include "wx/hash.h"
+#include "wx/fontenc.h"
class WXDLLEXPORT wxMBConv;
class WXDLLEXPORT wxHtmlParser;
diff --git a/src/html/htmltag.cpp b/src/html/htmltag.cpp
index 4e042c993f..1632ed6987 100644
--- a/src/html/htmltag.cpp
+++ b/src/html/htmltag.cpp
@@ -26,6 +26,7 @@
#include "wx/html/htmltag.h"
#include "wx/html/htmlpars.h"
+#include "wx/colour.h"
#include // for vsscanf
#include