From 1d3149292cb7bce9e144314d2df5cb93e452cad4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 25 Feb 2022 17:18:10 +0000 Subject: [PATCH] Don't declare wxPropertySheetDialogXmlHandler if !wxUSE_BOOKCTRL This class is only implemented when wxUSE_BOOKCTRL==1 as its code uses it, so it shouldn't be declared when wxUSE_BOOKCTRL==0 neither. This fixes wxiOS build problem after the latest changes. --- include/wx/xrc/xh_propdlg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wx/xrc/xh_propdlg.h b/include/wx/xrc/xh_propdlg.h index 5d3a16c7d0..cf0e8aa7ef 100644 --- a/include/wx/xrc/xh_propdlg.h +++ b/include/wx/xrc/xh_propdlg.h @@ -12,7 +12,7 @@ #include "wx/xrc/xmlres.h" -#if wxUSE_XRC +#if wxUSE_XRC && wxUSE_BOOKCTRL class WXDLLIMPEXP_FWD_CORE wxPropertySheetDialog; @@ -32,6 +32,6 @@ private: wxVector m_bookImagesIdx; }; -#endif // wxUSE_XRC +#endif // wxUSE_XRC && wxUSE_BOOKCTRL #endif // _WX_XH_PROPDLG_H_