X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f80ea77b4a8bac4ab005bfc592f9cd3262ffa397..24aab8e81a8627802e4111d9c99a50ece8d0026e:/src/xrc/xh_spin.cpp?ds=sidebyside diff --git a/src/xrc/xh_spin.cpp b/src/xrc/xh_spin.cpp index c6ad0fcf92..d7a2b589de 100644 --- a/src/xrc/xh_spin.cpp +++ b/src/xrc/xh_spin.cpp @@ -8,10 +8,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "xh_spin.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -19,11 +15,14 @@ #pragma hdrstop #endif +#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) wxSpinButtonXmlHandler::wxSpinButtonXmlHandler() @@ -63,6 +62,8 @@ bool wxSpinButtonXmlHandler::CanHandle(wxXmlNode *node) #if wxUSE_SPINCTRL +#include "wx/spinctrl.h" + IMPLEMENT_DYNAMIC_CLASS(wxSpinCtrlXmlHandler, wxXmlResourceHandler) wxSpinCtrlXmlHandler::wxSpinCtrlXmlHandler() @@ -99,3 +100,5 @@ bool wxSpinCtrlXmlHandler::CanHandle(wxXmlNode *node) } #endif // wxUSE_SPINCTRL + +#endif // wxUSE_XRC