diff --git a/tests/benchmarks/htmlparser/htmlpars.cpp b/tests/benchmarks/htmlparser/htmlpars.cpp
index 7a259a593d..5e0b2dc798 100644
--- a/tests/benchmarks/htmlparser/htmlpars.cpp
+++ b/tests/benchmarks/htmlparser/htmlpars.cpp
@@ -21,6 +21,7 @@
#include "wx/app.h"
#endif
+#include "wx/crt.h"
#include "wx/tokenzr.h"
#include "wx/wfstream.h"
#include "wx/url.h"
diff --git a/tests/benchmarks/htmlparser/htmltag.cpp b/tests/benchmarks/htmlparser/htmltag.cpp
index 485e37fa58..7a76bff3e9 100644
--- a/tests/benchmarks/htmlparser/htmltag.cpp
+++ b/tests/benchmarks/htmlparser/htmltag.cpp
@@ -15,9 +15,8 @@
#include "htmltag.h"
#include "htmlpars.h"
-#include // for vsscanf
-#include
+#include "wx/crt.h"
//-----------------------------------------------------------------------------
// wx28HtmlTagsCache