Add wxUSE_PROPGRID checks around wxPropertyGridXmlHandler

This is needed now that it's part of wx where it won't be always
compiled in.
This commit is contained in:
Vadim Zeitlin 2023-10-31 01:05:11 +01:00
parent a5b9e6d3e7
commit cb36cb5e53
2 changed files with 4 additions and 4 deletions

View file

@ -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_

View file

@ -28,7 +28,7 @@
*/
#if wxUSE_XRC
#if wxUSE_XRC && wxUSE_PROPGRID
#include <wx/propgrid/propgrid.h>
@ -318,4 +318,4 @@ bool wxPropertyGridXmlHandler::CanHandle(wxXmlNode *node)
);
}
#endif // wxUSE_XRC
#endif // wxUSE_XRC && wxUSE_PROPGRID