diff --git a/src/html/m_image.cpp b/src/html/m_image.cpp
index ec2c4e45ea..d537b54dcc 100644
--- a/src/html/m_image.cpp
+++ b/src/html/m_image.cpp
@@ -15,6 +15,7 @@
#if wxUSE_HTML && wxUSE_STREAMS
#ifndef WX_PRECOMP
+ #include "wx/app.h"
#include "wx/dynarray.h"
#include "wx/dc.h"
#include "wx/dcprint.h"