diff --git a/include/wx/htmllbox.h b/include/wx/htmllbox.h
index 34f4cd5741..7f69404903 100644
--- a/include/wx/htmllbox.h
+++ b/include/wx/htmllbox.h
@@ -11,6 +11,8 @@
#ifndef _WX_HTMLLBOX_H_
#define _WX_HTMLLBOX_H_
+#if wxUSE_HTML
+
#include "wx/vlbox.h" // base class
#include "wx/html/htmlwin.h"
#include "wx/ctrlsub.h"
@@ -320,5 +322,7 @@ protected:
wxDECLARE_NO_COPY_CLASS(wxSimpleHtmlListBox);
};
+#endif // wxUSE_HTML
+
#endif // _WX_HTMLLBOX_H_