Add missing wxUSE_XXX checks to persistent adapters headers

Make sure these headers can be compiled even when the control they're
written for is not available in the build. Including them in this case
doesn't make much sense, of course, but not giving any errors is still
nicer and consistent with the rest of wx headers.
This commit is contained in:
Vadim Zeitlin
2020-11-19 16:34:17 +01:00
parent 7f5d45b9b4
commit 152ec51033
4 changed files with 16 additions and 0 deletions

View File

@@ -12,6 +12,8 @@
#include "wx/persist/window.h"
#if wxUSE_BOOKCTRL
#include "wx/bookctrl.h"
// ----------------------------------------------------------------------------
@@ -63,4 +65,6 @@ inline wxPersistentObject *wxCreatePersistentObject(wxBookCtrlBase *book)
return new wxPersistentBookCtrl(book);
}
#endif // wxUSE_BOOKCTRL
#endif // _WX_PERSIST_BOOKCTRL_H_