diff --git a/src/html/htmlpars.cpp b/src/html/htmlpars.cpp
index c45c2dfa29..06537bd0ce 100644
--- a/src/html/htmlpars.cpp
+++ b/src/html/htmlpars.cpp
@@ -49,8 +49,9 @@ public:
WX_DECLARE_OBJARRAY(wxHtmlTextPiece, wxHtmlTextPieces);
WX_DEFINE_OBJARRAY(wxHtmlTextPieces);
-struct wxHtmlParserState
+class wxHtmlParserState
{
+public:
wxHtmlTag *m_curTag;
wxHtmlTag *m_tags;
wxHtmlTextPieces *m_textPieces;