From cb36cb5e53b3d0828da5983df051acf1c7a5de11 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 31 Oct 2023 01:05:11 +0100 Subject: [PATCH] Add wxUSE_PROPGRID checks around wxPropertyGridXmlHandler This is needed now that it's part of wx where it won't be always compiled in. --- include/wx/xrc/xh_propgrid.h | 4 ++-- src/xrc/xh_propgrid.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/wx/xrc/xh_propgrid.h b/include/wx/xrc/xh_propgrid.h index fcab66a820..58b745c0bf 100644 --- a/include/wx/xrc/xh_propgrid.h +++ b/include/wx/xrc/xh_propgrid.h @@ -26,7 +26,7 @@ #include "wx/propgrid/propgrid.h" #include "wx/propgrid/manager.h" -#if wxUSE_XRC +#if wxUSE_XRC && wxUSE_PROPGRID class wxPropertyGridXmlHandler : public wxXmlResourceHandler { @@ -50,6 +50,6 @@ private: wxPropertyGridPopulator* m_populator; }; -#endif // wxUSE_XRC +#endif // wxUSE_XRC && wxUSE_PROPGRID #endif // _WX_XH_PROPGRID_H_ diff --git a/src/xrc/xh_propgrid.cpp b/src/xrc/xh_propgrid.cpp index 6e78786bdd..6a8f05373f 100644 --- a/src/xrc/xh_propgrid.cpp +++ b/src/xrc/xh_propgrid.cpp @@ -28,7 +28,7 @@ */ -#if wxUSE_XRC +#if wxUSE_XRC && wxUSE_PROPGRID #include @@ -318,4 +318,4 @@ bool wxPropertyGridXmlHandler::CanHandle(wxXmlNode *node) ); } -#endif // wxUSE_XRC +#endif // wxUSE_XRC && wxUSE_PROPGRID