diff --git a/src/html/m_image.cpp b/src/html/m_image.cpp
index b8ffb83c8d..fcccbd11a3 100644
--- a/src/html/m_image.cpp
+++ b/src/html/m_image.cpp
@@ -24,6 +24,7 @@
#include "wx/log.h"
#include "wx/math.h"
#include "wx/image.h"
+ #include "wx/wxcrtvararg.h"
#endif
#include "wx/html/forcelnk.h"