From 05cce8d89db449acecd52bca2e42874009bd17e7 Mon Sep 17 00:00:00 2001 From: Arrigo Marchiori Date: Thu, 28 May 2020 07:08:41 +0200 Subject: [PATCH] Add wxUSE_HTML check to wxHtmlListBox header Avoid compilation errors if wx/htmllbox.h gets included when wxUSE_HTML is off. --- include/wx/htmllbox.h | 4 ++++ 1 file changed, 4 insertions(+) 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_