X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a1e4ec87317aa33fae6dbd8c55fbc699432d0026..5e80ff3d31fde40c3cef5a3b47d08850d95b5d1a:/src/xrc/xh_spin.cpp diff --git a/src/xrc/xh_spin.cpp b/src/xrc/xh_spin.cpp index 73c96c7a43..3398ffaad1 100644 --- a/src/xrc/xh_spin.cpp +++ b/src/xrc/xh_spin.cpp @@ -19,10 +19,13 @@ #pragma hdrstop #endif -#if wxUSE_XRC && wxUSE_SPINBTN +#if wxUSE_XRC #include "wx/xrc/xh_spin.h" -#include "wx/spinctrl.h" + +#if wxUSE_SPINBTN + +#include "wx/spinbutt.h" IMPLEMENT_DYNAMIC_CLASS(wxSpinButtonXmlHandler, wxXmlResourceHandler) @@ -63,6 +66,8 @@ bool wxSpinButtonXmlHandler::CanHandle(wxXmlNode *node) #if wxUSE_SPINCTRL +#include "wx/spinctrl.h" + IMPLEMENT_DYNAMIC_CLASS(wxSpinCtrlXmlHandler, wxXmlResourceHandler) wxSpinCtrlXmlHandler::wxSpinCtrlXmlHandler() @@ -98,4 +103,6 @@ bool wxSpinCtrlXmlHandler::CanHandle(wxXmlNode *node) return IsOfClass(node, wxT("wxSpinCtrl")); } -#endif // wxUSE_XRC && wxUSE_SPINCTRL +#endif // wxUSE_SPINCTRL + +#endif // wxUSE_XRC